X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fselector%2FselectorTest.js;h=03e72f2cf9e1a6e25268052eda813593b55eefa9;hb=c60d4519bc25003dcde81d4967ab8060b3184a0b;hp=945455ce36f40b3baa65e7445f013cac4a40b441;hpb=1e07c1a311358ce67e88d29c085160d8d210eb7b;p=jquery.git diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 945455c..03e72f2 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/*", [] ); + });