Skip to content

Commit 39b452e

Browse files
committed
Effects tests: Ignore leading/trailing whitespace when comparing style properties.
1 parent 04e5b10 commit 39b452e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/effects/effects_core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ asyncTest( "animateClass clears style properties when stopped", function() {
143143
expect( 2 );
144144

145145
test.addClass( "testChangeBackground", duration );
146-
notEqual( orig, style.cssText, "cssText is the not the same after starting animation" );
146+
notEqual( orig, style.cssText, "cssText is not the same after starting animation" );
147147

148148
test.stop( true, true );
149-
equal( orig, style.cssText, "cssText is the same after stopping animation midway" );
149+
equal( orig, $.trim( style.cssText ), "cssText is the same after stopping animation midway" );
150150
start();
151151
});
152152

0 commit comments

Comments
 (0)