X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=37eee5da7467ba12007934fc730eefdcd72dd999;hb=3c5c3dffaa4cd72ef112f414e2e2bb3b72f3f1b4;hp=6d2ff6b9dc90c55cb2120a9c722ee8aee769b86d;hpb=895df76146e2486c812a3a9bc5ed1585b0176f21;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 6d2ff6b..37eee5d 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1680,7 +1680,7 @@ test("$.makeArray", function(){ equals( $.makeArray( {length:2, 0:"a", 1:"b"} ).join(""), "ab", "Pass makeArray an array like map (with length)" ); - equals( $.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "HEAD", "Pass makeArray a childNodes array" ); + ok( !!$.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "Pass makeArray a childNodes array" ); //function, is tricky as it has length equals( $.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );