testrunner: re adding the test for a function within isFunction.

This commit is contained in:
Ariel Flesler 2008-12-16 00:05:04 +00:00
parent 475f89b651
commit e611289a79

View File

@ -1708,9 +1708,7 @@ test("jQuery.makeArray", function(){
ok( !!jQuery.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "Pass makeArray a childNodes array" ); ok( !!jQuery.makeArray( document.documentElement.childNodes ).slice(0,1)[0].nodeName, "Pass makeArray a childNodes array" );
// function, is tricky as it has length // function, is tricky as it has length
// NOTE: Due to the conflict with Scriptaculous (http://dev.jquery.com/ticket/3248) equals( jQuery.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );
// We remove support for functions since jQuery 1.3
//equals( jQuery.makeArray( function(){ return 1;} )[0](), 1, "Pass makeArray a function" );
//window, also has length //window, also has length
equals( jQuery.makeArray(window)[0], window, "Pass makeArray the window" ); equals( jQuery.makeArray(window)[0], window, "Pass makeArray the window" );