mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Give .stop() queue animations more leeway for Stutterin' Swarmy.
This test sometimes fails with only 2 animations left in the queue, so this extends the first animation in case we're running afoul of the one-second rule for background windows.
This commit is contained in:
parent
ed898c62c8
commit
d4ec6804e8
4
test/unit/effects.js
vendored
4
test/unit/effects.js
vendored
@ -598,7 +598,7 @@ test("stop() - several in queue", function() {
|
|||||||
var w = 0;
|
var w = 0;
|
||||||
$foo.hide().css( "width", 200 ).css("width");
|
$foo.hide().css( "width", 200 ).css("width");
|
||||||
|
|
||||||
$foo.animate({ "width": "show" }, 1000);
|
$foo.animate({ "width": "show" }, 1500);
|
||||||
$foo.animate({ "width": "hide" }, 1000);
|
$foo.animate({ "width": "hide" }, 1000);
|
||||||
$foo.animate({ "width": "show" }, 1000);
|
$foo.animate({ "width": "show" }, 1000);
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
@ -612,7 +612,7 @@ test("stop() - several in queue", function() {
|
|||||||
|
|
||||||
$foo.stop(true);
|
$foo.stop(true);
|
||||||
start();
|
start();
|
||||||
}, 100);
|
}, 200);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("stop(clearQueue)", function() {
|
test("stop(clearQueue)", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user