mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fixed toggle() test to exclude konquerer
This commit is contained in:
parent
02ffee4610
commit
2c99c18652
@ -7,8 +7,8 @@ test("toggle(Function, Function) - add toggle event and fake a few clicks", func
|
|||||||
fn2 = function(e) { count--; },
|
fn2 = function(e) { count--; },
|
||||||
preventDefault = function(e) { e.preventDefault() },
|
preventDefault = function(e) { e.preventDefault() },
|
||||||
link = $('#mark');
|
link = $('#mark');
|
||||||
if($.browser.msie || $.browser.opera)
|
if ( $.browser.msie || $.browser.opera || /konquerer/i.test(navigator.userAgent) )
|
||||||
ok( false, "click() on link gets executed in IE/Opera, not intended behaviour!" );
|
ok( false, "click() on link gets executed in IE/Opera/Konquerer, not intended behaviour!" );
|
||||||
else
|
else
|
||||||
link.click(preventDefault).click().toggle(fn1, fn2).click().click().click().click().click();
|
link.click(preventDefault).click().toggle(fn1, fn2).click().click().click().click().click();
|
||||||
ok( count == 1, "Check for toggle(fn, fn)" );
|
ok( count == 1, "Check for toggle(fn, fn)" );
|
||||||
|
Loading…
Reference in New Issue
Block a user