X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=25fd4dd82503c703ee8378f896dcff1fb1a8c065;hb=0e540ec1b170c11cab11045b4965a927cb44ee34;hp=be39a87d9e19931c56cd3135264a6828562e502c;hpb=7a724180a726c7b041d87494a4cf8780fc90e216;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index be39a87..25fd4dd 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -331,11 +331,15 @@ test("expressions - element", function() { }); test("expressions - id", function() { - expect(5); + expect(8); t( "ID Selector", "#body", ["body"] ); t( "ID Selector w/ Element", "body#body", ["body"] ); t( "ID Selector w/ Element", "ul#first", [] ); + 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/*", [] ); });