From 5cfaef9ff9b121850f1e27afae6819023acadbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 23 Jan 2007 16:57:34 +0000 Subject: [PATCH] Exclude Opera from toggle test, too (#863) --- src/event/eventTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event/eventTest.js b/src/event/eventTest.js index 01b97c1d..595ea02e 100644 --- a/src/event/eventTest.js +++ b/src/event/eventTest.js @@ -7,8 +7,8 @@ test("toggle(Function, Function) - add toggle event and fake a few clicks", func fn2 = function(e) { count--; }, preventDefault = function(e) { e.preventDefault() }, link = $('#mark'); - if($.browser.msie) - ok( false, "click() on link gets executed in IE, not intended behaviour!" ); + if($.browser.msie || $.browser.opera) + ok( false, "click() on link gets executed in IE/Opera, not intended behaviour!" ); else link.click(preventDefault).click().toggle(fn1, fn2).click().click().click().click().click(); ok( count == 1, "Check for toggle(fn, fn)" );