Skip to content
Permalink
Browse files

Tweaked the name unit tests to specify the exact nodes from which to …

…test against.
  • Loading branch information...
jeresig committed Sep 2, 2010
1 parent d48db1f commit 90a4abd5111e57213059eb80876551ae1fac6c53
Showing with 2 additions and 2 deletions.
  1. +2 −2 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();

0 comments on commit 90a4abd

Please sign in to comment.
You can’t perform that action at this time.