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
81432c88
Commit
81432c88
authored
Jul 25, 2012
by
Corey Frang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying to repair a unit
parent
0f14c53d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
effects.js
test/unit/effects.js
+23
-19
No files found.
test/unit/effects.js
View file @
81432c88
...
@@ -1405,25 +1405,29 @@ asyncTest( "jQuery.Animation( object, props, opts )", 4, function() {
...
@@ -1405,25 +1405,29 @@ asyncTest( "jQuery.Animation( object, props, opts )", 4, function() {
asyncTest
(
"Animate Option: step: function( percent, tween )"
,
1
,
function
()
{
asyncTest
(
"Animate Option: step: function( percent, tween )"
,
1
,
function
()
{
var
counter
=
{};
var
counter
=
{};
jQuery
(
"#foo"
).
animate
({
// if the animation loop is already running when we start this test, it WILL fail
prop1
:
1
,
// going to try delaying 100ms to make sure any potential leftover animations are done
prop2
:
2
,
setTimeout
(
function
()
{
prop3
:
3
jQuery
(
"#foo"
).
animate
({
},
{
prop1
:
1
,
duration
:
1
,
prop2
:
2
,
step
:
function
(
value
,
tween
)
{
prop3
:
3
var
calls
=
counter
[
tween
.
prop
]
=
counter
[
tween
.
prop
]
||
[];
},
{
calls
.
push
(
value
);
duration
:
1
,
}
step
:
function
(
value
,
tween
)
{
}).
queue
(
function
(
next
)
{
var
calls
=
counter
[
tween
.
prop
]
=
counter
[
tween
.
prop
]
||
[];
deepEqual
(
counter
,
{
calls
.
push
(
value
);
prop1
:
[
0
,
1
],
}
prop2
:
[
0
,
2
],
}).
queue
(
function
(
next
)
{
prop3
:
[
0
,
3
]
deepEqual
(
counter
,
{
},
"Step function was called once at 0% and once at 100% for each property"
);
prop1
:
[
0
,
1
],
next
();
prop2
:
[
0
,
2
],
start
();
prop3
:
[
0
,
3
]
});
},
"Step function was called once at 0% and once at 100% for each property"
);
next
();
start
();
});
},
100
);
});
});
asyncTest
(
"Animate callbacks have correct context"
,
2
,
function
()
{
asyncTest
(
"Animate callbacks have correct context"
,
2
,
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