X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fselector%2FselectorTest.js;fp=src%2Fselector%2FselectorTest.js;h=458804bbfe7fa7fcc23d676f5975a1127373ff23;hb=127c0b8a5d9ab35f9f0b91688a8ff7df45244977;hp=7a4789a80a1a9d26a6046acfc7912625d1f6dcea;hpb=3ae74b523ec379a1753d116bb7f1aec8db2c52d4;p=jquery.git diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index 7a4789a..458804b 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -41,7 +41,7 @@ test("broken", function() { }); test("id", function() { - expect(24); + expect(25); t( "ID Selector", "#body", ["body"] ); t( "ID Selector w/ Element", "body#body", ["body"] ); t( "ID Selector w/ Element", "ul#first", [] ); @@ -72,6 +72,8 @@ test("id", function() { t( "ID Selector on Form with an input that has a name of 'id'", "#lengthtest", ["lengthtest"] ); t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986 + + isSet( $("body").find("div#form"), [], "ID selector within the context of another element" ); }); test("class", function() {