aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/effects
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-09-28 10:00:25 -0400
committerScott González <scott.gonzalez@gmail.com>2011-09-28 10:00:25 -0400
commit39b452e1be8d6ef9006c26be3495c633d15ff96f (patch)
tree84f688dbf95235993fcb8acd6b5b35348d0d4b39 /tests/unit/effects
parent04e5b103ca81e630bab5e072f805ef4a3fe489c9 (diff)
downloadjquery-ui-39b452e1be8d6ef9006c26be3495c633d15ff96f.tar.gz
jquery-ui-39b452e1be8d6ef9006c26be3495c633d15ff96f.zip
Effects tests: Ignore leading/trailing whitespace when comparing style properties.
Diffstat (limited to 'tests/unit/effects')
-rw-r--r--tests/unit/effects/effects_core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js
index 2b4d684eb..1e5da2113 100644
--- a/tests/unit/effects/effects_core.js
+++ b/tests/unit/effects/effects_core.js
@@ -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();
});