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
d2815ed7
Commit
d2815ed7
authored
Nov 14, 2011
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable DOM focusin test since it can't really work in the swarm.
parent
683be093
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
event.js
test/unit/event.js
+5
-4
No files found.
test/unit/event.js
View file @
d2815ed7
...
@@ -2319,7 +2319,7 @@ test("window resize", function() {
...
@@ -2319,7 +2319,7 @@ test("window resize", function() {
});
});
test
(
"focusin bubbles"
,
function
()
{
test
(
"focusin bubbles"
,
function
()
{
expect
(
5
);
expect
(
2
);
var
input
=
jQuery
(
"<input type='text' />"
).
prependTo
(
"body"
),
var
input
=
jQuery
(
"<input type='text' />"
).
prependTo
(
"body"
),
order
=
0
;
order
=
0
;
...
@@ -2332,13 +2332,14 @@ test("focusin bubbles", function() {
...
@@ -2332,13 +2332,14 @@ test("focusin bubbles", function() {
equal
(
0
,
order
++
,
"focusin on the element first"
);
equal
(
0
,
order
++
,
"focusin on the element first"
);
});
});
// Removed since DOM focus is unreliable on test swarm
// DOM focus method
// DOM focus method
input
[
0
].
focus
();
//
input[0].focus();
// To make the next focus test work, we need to take focus off the input.
// To make the next focus test work, we need to take focus off the input.
// This will fire another focusin event, so set order to reflect that.
// This will fire another focusin event, so set order to reflect that.
order
=
1
;
//
order = 1;
jQuery
(
"#text1"
)[
0
].
focus
();
//
jQuery("#text1")[0].focus();
// jQuery trigger, which calls DOM focus
// jQuery trigger, which calls DOM focus
order
=
0
;
order
=
0
;
...
...
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