Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
2c99c186
Commit
2c99c186
authored
Feb 05, 2007
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed toggle() test to exclude konquerer
parent
02ffee46
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eventTest.js
src/event/eventTest.js
+2
-2
No files found.
src/event/eventTest.js
View file @
2c99c186
...
@@ -7,8 +7,8 @@ test("toggle(Function, Function) - add toggle event and fake a few clicks", func
...
@@ -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)"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment