aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/effects
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2013-01-26 11:59:08 -0600
committerDavid Petersen <public@petersendidit.com>2013-01-29 07:47:54 -0600
commit2ca4d17982bfedc723f499b41e0936ada9eaa852 (patch)
tree97f40e694c062a367ce5e358c911a50367777700 /tests/unit/effects
parent3aa8ad0c4ad15ceac52c4f653b7d4e66995bb297 (diff)
downloadjquery-ui-2ca4d17982bfedc723f499b41e0936ada9eaa852.tar.gz
jquery-ui-2ca4d17982bfedc723f499b41e0936ada9eaa852.zip
Effects Core: make removeClass work correctly with changes jQuery 1.9.0. Fixed #9015 - Inclusion of jQuery UI breaks removeClass
Diffstat (limited to 'tests/unit/effects')
-rw-r--r--tests/unit/effects/effects_core.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js
index 26390b7d3..c9b1e1b4a 100644
--- a/tests/unit/effects/effects_core.js
+++ b/tests/unit/effects/effects_core.js
@@ -38,6 +38,17 @@ asyncTest( "Parse of null for options", function() {
});
});
+test( "removeClass", function() {
+ expect( 3 );
+
+ var element = $( "<div>" );
+ equal( "", element[ 0 ].className );
+ element.addClass( "destroyed" );
+ equal( "destroyed", element[ 0 ].className );
+ element.removeClass();
+ equal( "", element[ 0 ].className );
+});
+
/* TODO: Disabled - Can't figure out why this is failing in IE 6/7
test( "createWrapper and removeWrapper retain focused elements (#7595)", function() {