| 142 | // Function with toString() overridden (bug #3134) |
| 143 | var fnWithToString = function(){}; |
| 144 | fnWithToString.toString = function(){ return "Test"; }; |
| 145 | ok( jQuery.isFunction(fnWithToString), "Normal Function with toString() overridden" ); |
| 146 | |
| 147 | // Object with toString() function (bug #3134) |
| 148 | ok( !jQuery.isFunction({ toString: function(){ return "function"; } }), "Object with toString() function" ); |
| 149 | |
| 150 | // Native functions in IE |
| 151 | ok( jQuery.isFunction( window.alert ), "alert()" ); |
| 152 | ok( jQuery.isFunction( window.prompt ), "prompt()" ); |
| 153 | |