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
55c196e8
Commit
55c196e8
authored
Mar 18, 2014
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event: Simplify the logic behind blacklisting Android 2.3 on one test
parent
14e0a632
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
event.js
test/unit/event.js
+4
-7
No files found.
test/unit/event.js
View file @
55c196e8
...
@@ -387,12 +387,7 @@ test("on immediate propagation", function() {
...
@@ -387,12 +387,7 @@ test("on immediate propagation", function() {
});
});
test
(
"on bubbling, isDefaultPrevented, stopImmediatePropagation"
,
function
()
{
test
(
"on bubbling, isDefaultPrevented, stopImmediatePropagation"
,
function
()
{
// Support: Android 2.3
if
(
/android 2
\.
3/i
.
test
(
navigator
.
userAgent
)
)
{
expect
(
2
);
}
else
{
expect
(
3
);
expect
(
3
);
}
var
$anchor2
=
jQuery
(
"#anchor2"
),
var
$anchor2
=
jQuery
(
"#anchor2"
),
$main
=
jQuery
(
"#qunit-fixture"
),
$main
=
jQuery
(
"#qunit-fixture"
),
...
@@ -427,7 +422,9 @@ test("on bubbling, isDefaultPrevented, stopImmediatePropagation", function() {
...
@@ -427,7 +422,9 @@ test("on bubbling, isDefaultPrevented, stopImmediatePropagation", function() {
// Android 2.3 doesn't support stopImmediatePropagation; jQuery fallbacks to stopPropagation
// Android 2.3 doesn't support stopImmediatePropagation; jQuery fallbacks to stopPropagation
// in such a case.
// in such a case.
// Support: Android 2.3
// Support: Android 2.3
if
(
!
/android 2
\.
3/i
.
test
(
navigator
.
userAgent
)
)
{
if
(
/android 2
\.
3/i
.
test
(
navigator
.
userAgent
)
)
{
ok
(
true
,
"Android 2.3, skipping native stopImmediatePropagation check"
);
}
else
{
$anchor2
.
on
(
"click"
,
function
(
e
)
{
$anchor2
.
on
(
"click"
,
function
(
e
)
{
e
.
stopImmediatePropagation
();
e
.
stopImmediatePropagation
();
ok
(
true
,
"anchor was clicked and prop stopped"
);
ok
(
true
,
"anchor was clicked and prop stopped"
);
...
...
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