From 90a4abd5111e57213059eb80876551ae1fac6c53 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 2 Sep 2010 15:13:10 -0400 Subject: [PATCH] Tweaked the name unit tests to specify the exact nodes from which to test against. --- test/unit/selector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/selector.js b/test/unit/selector.js index 244c7eb..459d0d9 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(); -- 1.7.10.4