Skip to content
Permalink
Browse files

Effects: Fix timing of `.animateClass()` assertion

  • Loading branch information
scottgonzalez committed Jul 6, 2016
1 parent 9d807ba commit ba91b324ab32ade74356adc48d2ee0e2c7b1e078
Showing with 7 additions and 3 deletions.
  1. +7 −3 tests/unit/effects/core.js
@@ -206,9 +206,13 @@ QUnit.test( "animateClass clears style properties when stopped", function( asser
test.addClass( "testChangeBackground", duration );
assert.notEqual( orig, style.cssText, "cssText is not the same after starting animation" );

test.stop( true, true );
assert.equal( orig, $.trim( style.cssText ), "cssText is the same after stopping animation midway" );
ready();
test
.stop( true, true )
.promise()
.then( function() {
assert.equal( orig, $.trim( style.cssText ), "cssText is the same after stopping animation midway" );
ready();
} );
} );

QUnit.test( "animateClass: css and class changes during animation are not lost (#7106)",

0 comments on commit ba91b32

Please sign in to comment.
You can’t perform that action at this time.