diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-11-18 13:37:01 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-11-18 13:37:01 +0000 |
commit | 7cc550727c4e0bcd93c5d435f0799f568fc74dfa (patch) | |
tree | 62a407183988fa13b4f2d0f6a5165444683d740d /src/event/event.js | |
parent | 797ccbaf3185e501a52b5a3517126fdbab03764c (diff) | |
download | jquery-7cc550727c4e0bcd93c5d435f0799f568fc74dfa.tar.gz jquery-7cc550727c4e0bcd93c5d435f0799f568fc74dfa.zip |
Testsuite 2.0
Diffstat (limited to 'src/event/event.js')
-rw-r--r-- | src/event/event.js | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/event/event.js b/src/event/event.js index 19bb4f6a3..921e52427 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -16,13 +16,6 @@ jQuery.fn.extend({ * $(this).removeClass("selected"); * }); * - * @test var count = 0; - * var fn1 = function() { count++; } - * var fn2 = function() { count--; } - * var link = $('#mark'); - * link.click().toggle(fn1, fn2).click().click().click().click().click(); - * ok( count == 1, "Check for toggle(fn, fn)" ); - * * @name toggle * @type jQuery * @param Function even The function to execute on every even click. @@ -1527,50 +1520,6 @@ new function(){ * @type jQuery * @cat Events/Mouse */ - - /** - * @test var count; - * // ignore load - * var e = ("blur,focus,resize,scroll,unload,click,dblclick," + - * "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + - * "submit,keydown,keypress,keyup,error").split(","); - * var handler1 = function(event) { - * count++; - * }; - * var handler2 = function(event) { - * count++; - * }; - * for( var i=0; i < e.length; i++) { - * var event = e[i]; - * count = 0; - * // bind handler - * $(document)[event](handler1); - * $(document)[event](handler2); - * $(document)["one"+event](handler1); - * - * // call event two times - * $(document)[event](); - * $(document)[event](); - * - * // unbind events - * $(document)["un"+event](handler1); - * // call once more - * $(document)[event](); - * - * // remove all handlers - * $(document)["un"+event](); - * - * // call once more - * $(document)[event](); - * - * // assert count - * ok( count == 6, 'Checking event ' + event); - * } - * - * @private - * @name eventTesting - * @cat Events - */ var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + |