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:
895df76
)
test runner: A test was failing on Opera 9.50. Not a bug, just made the test less...
author
Ariel Flesler
<aflesler@gmail.com>
Sat, 24 May 2008 21:27:12 +0000
(21:27 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Sat, 24 May 2008 21:27:12 +0000
(21:27 +0000)
test/unit/core.js
patch
|
blob
|
history
diff --git
a/test/unit/core.js
b/test/unit/core.js
index
6d2ff6b
..
37eee5d
100644
(file)
--- a/
test/unit/core.js
+++ b/
test/unit/core.js
@@
-1680,7
+1680,7
@@
test("$.makeArray", function(){
\r
equals( $.makeArray( {length:2, 0:"a", 1:"b"} ).join(""), "ab", "Pass makeArray an array like map (with length)" );
\r
\r
\r
equals( $.makeArray( {length:2, 0:"a", 1:"b"} ).join(""), "ab", "Pass makeArray an array like map (with length)" );
\r
\r
- equals( $.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "HEAD", "Pass makeArray a childNodes array" );
\r
+ ok( !!$.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "Pass makeArray a childNodes array" );
\r
\r
//function, is tricky as it has length
\r
equals( $.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );
\r
\r
//function, is tricky as it has length
\r
equals( $.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );
\r