]> source.dussan.org Git - jquery.git/commitdiff
Tweaked the name unit tests to specify the exact nodes from which to test against.
authorJohn Resig <jeresig@gmail.com>
Thu, 2 Sep 2010 19:13:10 +0000 (15:13 -0400)
committerJohn Resig <jeresig@gmail.com>
Thu, 2 Sep 2010 19:13:10 +0000 (15:13 -0400)
test/unit/selector.js

index 244c7eb933a916420db3fb5d3b9bdc1674d4ef10..459d0d9fc976d529ad1f366a9ea09e10785039e5 100644 (file)
@@ -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();