Commit 8613d9a9 authored by John Resig's avatar John Resig

Added a test for bug #997.

parent 7d0a8419
...@@ -20,7 +20,7 @@ test("$()", function() { ...@@ -20,7 +20,7 @@ test("$()", function() {
}); });
test("isFunction", function() { test("isFunction", function() {
expect(20); expect(21);
// Make sure that false values return false // Make sure that false values return false
ok( !jQuery.isFunction(), "No Value" ); ok( !jQuery.isFunction(), "No Value" );
...@@ -79,6 +79,15 @@ test("isFunction", function() { ...@@ -79,6 +79,15 @@ test("isFunction", function() {
document.body.removeChild( input ); document.body.removeChild( input );
var a = document.createElement("a");
a.href = "some-function";
document.body.appendChild( a );
// This serializes with the word 'function' in it
ok( !jQuery.isFunction(a), "Anchor Element" );
document.body.removeChild( a );
// Recursive function calls have lengths and array-like properties // Recursive function calls have lengths and array-like properties
function callme(callback){ function callme(callback){
function fn(response){ function fn(response){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment