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
d5f2129a
Commit
d5f2129a
authored
Sep 15, 2007
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an issue with the suite expecting a different result for the changed triggerHandler behavior.
parent
606b863e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
event.js
test/unit/event.js
+3
-3
No files found.
test/unit/event.js
View file @
d5f2129a
...
@@ -160,15 +160,15 @@ test("trigger(event, [data], [fn])", function() {
...
@@ -160,15 +160,15 @@ test("trigger(event, [data], [fn])", function() {
equals
(
$
(
"#firstp"
).
triggerHandler
(
"click"
,
[
1
,
"2"
,
"abc"
],
handler2
),
"test"
,
"Verify handler response"
);
equals
(
$
(
"#firstp"
).
triggerHandler
(
"click"
,
[
1
,
"2"
,
"abc"
],
handler2
),
"test"
,
"Verify handler response"
);
// Build fake click event to pass in
// Build fake click event to pass in
var
eventObj
=
jQuery
.
event
.
fix
({
type
:
"
click
"
,
target
:
document
.
body
});
var
eventObj
=
jQuery
.
event
.
fix
({
type
:
"
foo
"
,
target
:
document
.
body
});
// Trigger only the handlers (no native), with external event obj
// Trigger only the handlers (no native), with external event obj
// Triggers 5
// Triggers 5
equals
(
$
(
"#firstp"
).
triggerHandler
(
"
foo
"
,
[
eventObj
,
1
,
"2"
,
"abc"
]),
"test"
,
"Verify handler response"
);
equals
(
$
(
"#firstp"
).
triggerHandler
(
"
click
"
,
[
eventObj
,
1
,
"2"
,
"abc"
]),
"test"
,
"Verify handler response"
);
// Trigger only the handlers (no native) and extra fn, with external event obj
// Trigger only the handlers (no native) and extra fn, with external event obj
// Triggers 9
// Triggers 9
equals
(
$
(
"#firstp"
).
triggerHandler
(
"
foo
"
,
[
eventObj
,
1
,
"2"
,
"abc"
],
handler
),
"test"
,
"Verify handler response"
);
equals
(
$
(
"#firstp"
).
triggerHandler
(
"
click
"
,
[
eventObj
,
1
,
"2"
,
"abc"
],
handler
),
"test"
,
"Verify handler response"
);
});
});
test
(
"toggle(Function, Function)"
,
function
()
{
test
(
"toggle(Function, Function)"
,
function
()
{
...
...
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