Tweaked the name unit tests to specify the exact nodes from which to test against.

This commit is contained in:
John Resig 2010-09-02 15:13:10 -04:00
parent d48db1f440
commit 90a4abd511

View 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();