Commit f0432d54 authored by Corey Frang's avatar Corey Frang

This should repair the unit

parent 81432c88
Subproject commit 4fc4b92a1d1037b70162faf19860c2aac2ae5622 Subproject commit e4d50dd01f7573e205606746b32924281db379f0
...@@ -1405,9 +1405,6 @@ asyncTest( "jQuery.Animation( object, props, opts )", 4, function() { ...@@ -1405,9 +1405,6 @@ 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 = {};
// if the animation loop is already running when we start this test, it WILL fail
// going to try delaying 100ms to make sure any potential leftover animations are done
setTimeout( function() {
jQuery( "#foo" ).animate({ jQuery( "#foo" ).animate({
prop1: 1, prop1: 1,
prop2: 2, prop2: 2,
...@@ -1416,7 +1413,9 @@ asyncTest( "Animate Option: step: function( percent, tween )", 1, function() { ...@@ -1416,7 +1413,9 @@ asyncTest( "Animate Option: step: function( percent, tween )", 1, function() {
duration: 1, duration: 1,
step: function( value, tween ) { step: function( value, tween ) {
var calls = counter[ tween.prop ] = counter[ tween.prop ] || []; var calls = counter[ tween.prop ] = counter[ tween.prop ] || [];
calls.push( value ); // in case this is called multiple times for either, lets store it in
// 0 or 1 in the array
calls[ value === 0 ? 0 : 1 ] = value;
} }
}).queue( function( next ) { }).queue( function( next ) {
deepEqual( counter, { deepEqual( counter, {
...@@ -1427,7 +1426,6 @@ asyncTest( "Animate Option: step: function( percent, tween )", 1, function() { ...@@ -1427,7 +1426,6 @@ asyncTest( "Animate Option: step: function( percent, tween )", 1, function() {
next(); next();
start(); start();
}); });
}, 100 );
}); });
asyncTest( "Animate callbacks have correct context", 2, function() { asyncTest( "Animate callbacks have correct context", 2, function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment