diff options
author | John Resig <jeresig@gmail.com> | 2007-03-16 00:05:38 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-03-16 00:05:38 +0000 |
commit | 8613d9a93ac424ee5c60ba6f69751e93a2d179c6 (patch) | |
tree | b2dcef78cc4a2e4ab7bcc313c56c94e00c492239 /src | |
parent | 7d0a84193f539d85267d1458aba35a42d7dbd03b (diff) | |
download | jquery-8613d9a93ac424ee5c60ba6f69751e93a2d179c6.tar.gz jquery-8613d9a93ac424ee5c60ba6f69751e93a2d179c6.zip |
Added a test for bug #997.
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/coreTest.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index aa2932bf3..c8dada498 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -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" );
@@ -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){
|