test runner: A test was failing on Opera 9.50. Not a bug, just made the test less...
authorAriel Flesler <aflesler@gmail.com>
Sat, 24 May 2008 21:27:12 +0000 (21:27 +0000)
committerAriel Flesler <aflesler@gmail.com>
Sat, 24 May 2008 21:27:12 +0000 (21:27 +0000)
test/unit/core.js

index 6d2ff6b..37eee5d 100644 (file)
@@ -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
-       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