git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d48db1f
)
Tweaked the name unit tests to specify the exact nodes from which to test against.
author
John Resig
<jeresig@gmail.com>
Thu, 2 Sep 2010 19:13:10 +0000
(15:13 -0400)
committer
John Resig
<jeresig@gmail.com>
Thu, 2 Sep 2010 19:13:10 +0000
(15:13 -0400)
test/unit/selector.js
patch
|
blob
|
history
diff --git
a/test/unit/selector.js
b/test/unit/selector.js
index
244c7eb
..
459d0d9
100644
(file)
--- 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." );
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();
t( "Find elements that have similar IDs", "#tName2ID", ["tName2ID"] );
a.remove();