X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=8f9f56e261cc82bf28f1ee792e59d5690ea0746c;hb=62c83a764cdb3f6e7f6a9b696de1636570df19bf;hp=856257f38b8c67316d36582d8c776de16918f925;hpb=d9a3e0080a4ffe472a2ee4458b223fb1feb8021c;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 856257f..8f9f56e 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -1,7 +1,7 @@ module("selector"); test("element", function() { - expect(18); + expect(21); QUnit.reset(); ok( jQuery("*").size() >= 30, "Select all" ); @@ -32,6 +32,11 @@ test("element", function() { t( "Checking sort order", "h2, h1", ["qunit-header", "qunit-banner", "qunit-userAgent"] ); t( "Checking sort order", "h2:first, h1:first", ["qunit-header", "qunit-banner"] ); t( "Checking sort order", "p, p a", ["firstp", "simon1", "ap", "google", "groups", "anchor1", "mark", "sndp", "en", "yahoo", "sap", "anchor2", "simon", "first"] ); + + // Test Conflict ID + same( jQuery("#lengthtest").find("#idTest").get(), q("idTest"), "Finding element with id of ID." ); + same( jQuery("#lengthtest").find("[name='id']").get(), q("idTest"), "Finding element with id of ID." ); + same( jQuery("#lengthtest").find("input[id='idTest']").get(), q("idTest"), "Finding elements with a context." ); }); if ( location.protocol != "file:" ) {