Effects tests: Ignore leading/trailing whitespace when comparing style properties.

This commit is contained in:
Scott González 2011-09-28 10:00:25 -04:00
parent 04e5b103ca
commit 39b452e1be

View File

@ -143,10 +143,10 @@ asyncTest( "animateClass clears style properties when stopped", function() {
expect( 2 );
test.addClass( "testChangeBackground", duration );
notEqual( orig, style.cssText, "cssText is the not the same after starting animation" );
notEqual( orig, style.cssText, "cssText is not the same after starting animation" );
test.stop( true, true );
equal( orig, style.cssText, "cssText is the same after stopping animation midway" );
equal( orig, $.trim( style.cssText ), "cssText is the same after stopping animation midway" );
start();
});