git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d0a841
)
Added a test for bug #997.
author
John Resig
<jeresig@gmail.com>
Fri, 16 Mar 2007 00:05:38 +0000
(
00:05
+0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 16 Mar 2007 00:05:38 +0000
(
00:05
+0000)
src/jquery/coreTest.js
patch
|
blob
|
history
diff --git
a/src/jquery/coreTest.js
b/src/jquery/coreTest.js
index
aa2932b
..
c8dada4
100644
(file)
--- a/
src/jquery/coreTest.js
+++ b/
src/jquery/coreTest.js
@@
-20,7
+20,7
@@
test("$()", function() {
});
\r
\r
test("isFunction", function() {
\r
});
\r
\r
test("isFunction", function() {
\r
- expect(20);
\r
+ expect(21);
\r
\r
// Make sure that false values return false
\r
ok( !jQuery.isFunction(), "No Value" );
\r
\r
// Make sure that false values return false
\r
ok( !jQuery.isFunction(), "No Value" );
\r
@@
-79,6
+79,15
@@
test("isFunction", function() {
\r
document.body.removeChild( input );
\r
\r
\r
document.body.removeChild( input );
\r
\r
+ var a = document.createElement("a");
\r
+ a.href = "some-function";
\r
+ document.body.appendChild( a );
\r
+
\r
+ // This serializes with the word 'function' in it
\r
+ ok( !jQuery.isFunction(a), "Anchor Element" );
\r
+
\r
+ document.body.removeChild( a );
\r
+
\r
// Recursive function calls have lengths and array-like properties
\r
function callme(callback){
\r
function fn(response){
\r
// Recursive function calls have lengths and array-like properties
\r
function callme(callback){
\r
function fn(response){
\r