From: John Resig Date: Thu, 2 Sep 2010 19:13:10 +0000 (-0400) Subject: Tweaked the name unit tests to specify the exact nodes from which to test against. X-Git-Tag: 1.4.3rc1~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=90a4abd5111e57213059eb80876551ae1fac6c53;p=jquery.git Tweaked the name unit tests to specify the exact nodes from which to test against. --- diff --git a/test/unit/selector.js b/test/unit/selector.js index 244c7eb93..459d0d9fc 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -174,8 +174,8 @@ test("name", function() { equals( a.length, 3, "Make sure the right number of elements were inserted." ); equals( a[1].id, "tName2ID", "Make sure the right number of elements were inserted." ); - t( "Find elements that have similar IDs", "[name=tName1]", ["tName1ID"] ); - t( "Find elements that have similar IDs", "[name=tName2]", ["tName2ID"] ); + equals( jQuery("[name=tName1]")[0], a[0], "Find elements that have similar IDs" ); + equals( jQuery("[name=tName2]")[0], a[1], "Find elements that have similar IDs" ); t( "Find elements that have similar IDs", "#tName2ID", ["tName2ID"] ); a.remove();