mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added test for #895
This commit is contained in:
parent
1e07c1a311
commit
c60d4519bc
@ -11,10 +11,12 @@ test("expressions - element", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("expressions - id", function() {
|
test("expressions - id", function() {
|
||||||
expect(8);
|
expect(10);
|
||||||
t( "ID Selector", "#body", ["body"] );
|
t( "ID Selector", "#body", ["body"] );
|
||||||
t( "ID Selector w/ Element", "body#body", ["body"] );
|
t( "ID Selector w/ Element", "body#body", ["body"] );
|
||||||
t( "ID Selector w/ Element", "ul#first", [] );
|
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, child ID present", "#form > #radio1", ["radio1"] ); // bug #267
|
||||||
t( "ID Selector, not an ancestor ID", "#form #first", [] );
|
t( "ID Selector, not an ancestor ID", "#form #first", [] );
|
||||||
@ -22,6 +24,7 @@ test("expressions - id", function() {
|
|||||||
|
|
||||||
t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
|
t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] );
|
||||||
t( "All Children of ID with no children", "#firstUL/*", [] );
|
t( "All Children of ID with no children", "#firstUL/*", [] );
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user