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
7799f213
Commit
7799f213
authored
May 11, 2012
by
Corey Frang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #8892: Adding unit test for #8892 - Actually fixed in
58ed62ed
parent
afb34fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
effects.js
test/unit/effects.js
+14
-0
No files found.
test/unit/effects.js
View file @
7799f213
...
@@ -1495,3 +1495,17 @@ asyncTest( "Animate callbacks have correct context", 2, function() {
...
@@ -1495,3 +1495,17 @@ asyncTest( "Animate callbacks have correct context", 2, function() {
start
();
start
();
});
});
});
});
asyncTest
(
"User supplied callback called after show when fx off (#8892)"
,
2
,
function
()
{
var
foo
=
jQuery
(
"#foo"
);
jQuery
.
fx
.
off
=
true
;
foo
.
hide
();
foo
.
fadeIn
(
500
,
function
()
{
ok
(
jQuery
(
this
).
is
(
":visible"
),
"Element is visible in callback"
);
foo
.
fadeOut
(
500
,
function
()
{
ok
(
jQuery
(
this
).
is
(
":hidden"
),
"Element is hidden in callback"
);
jQuery
.
fx
.
off
=
false
;
start
();
});
});
});
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