Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added a test for bug #997.
  • Loading branch information
jeresig committed Mar 16, 2007
1 parent 7d0a841 commit 8613d9a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/jquery/coreTest.js
Expand Up @@ -20,7 +20,7 @@ test("$()", function() {
});

test("isFunction", function() {
expect(20);
expect(21);

// Make sure that false values return false
ok( !jQuery.isFunction(), "No Value" );
Expand Down Expand Up @@ -79,6 +79,15 @@ test("isFunction", function() {

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
function callme(callback){
function fn(response){
Expand Down

0 comments on commit 8613d9a

Please sign in to comment.