diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-01-31 21:19:35 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-01-31 21:19:35 +0000 |
commit | c60d4519bc25003dcde81d4967ab8060b3184a0b (patch) | |
tree | 8cf81784ee11b1ee1603b9e1f4c3ef860ad31f5c /src/selector/selectorTest.js | |
parent | 1e07c1a311358ce67e88d29c085160d8d210eb7b (diff) | |
download | jquery-c60d4519bc25003dcde81d4967ab8060b3184a0b.tar.gz jquery-c60d4519bc25003dcde81d4967ab8060b3184a0b.zip |
Added test for #895
Diffstat (limited to 'src/selector/selectorTest.js')
-rw-r--r-- | src/selector/selectorTest.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 945455ce3..03e72f2cf 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -11,17 +11,20 @@ test("expressions - element", function() { });
test("expressions - id", function() {
- expect(8);
+ expect(10);
t( "ID Selector", "#body", ["body"] );
t( "ID Selector w/ Element", "body#body", ["body"] );
t( "ID Selector w/ Element", "ul#first", [] );
+ t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );
+ t( "ID selector with non-existing descendant", "#firstp #foobar", [] );
t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); // bug #267
t( "ID Selector, not an ancestor ID", "#form #first", [] );
t( "ID Selector, not a child ID", "#form > #option1a", [] );
- t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
- t( "All Children of ID with no children", "#firstUL/*", [] );
+ t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
+ t( "All Children of ID with no children", "#firstUL/*", [] );
+
});
|