aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-02-02 19:35:16 -0500
committerAlexander Schmitz <arschmitz@gmail.com>2015-03-11 16:05:39 -0400
commit53d1bc2ce1d2213a40d6edbddf9ed3336ca7d10e (patch)
treebe8ea7bc64e42a71f39069e7844ec8cdd196f634
parent15a9ed77083523e6ba1beb92538ebf31f142f000 (diff)
downloadjquery-ui-53d1bc2ce1d2213a40d6edbddf9ed3336ca7d10e.tar.gz
jquery-ui-53d1bc2ce1d2213a40d6edbddf9ed3336ca7d10e.zip
Effects: Use new has/lacksClasses assertions for all class checks
-rw-r--r--tests/unit/effects/effects.html1
-rw-r--r--tests/unit/effects/effects_core.js5
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/effects/effects.html b/tests/unit/effects/effects.html
index a092ce04b..352224a7b 100644
--- a/tests/unit/effects/effects.html
+++ b/tests/unit/effects/effects.html
@@ -9,6 +9,7 @@
<script src="../../../external/qunit/qunit.js"></script>
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
+ <script src="../../../external/qunit-assert-classes/qunit-assert-classes.js"></script>
<script>
TestHelpers.loadResources({
js: [
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js
index 0c4e5574f..346e404c2 100644
--- a/tests/unit/effects/effects_core.js
+++ b/tests/unit/effects/effects_core.js
@@ -182,13 +182,14 @@ asyncTest( "animateClass clears style properties when stopped", function() {
start();
});
-asyncTest( "animateClass: css and class changes during animation are not lost (#7106)", function() {
+asyncTest( "animateClass: css and class changes during animation are not lost (#7106)",
+function( assert ) {
expect( 2 );
var test = $( "div.ticket7106" );
// ensure the class stays and that the css property stays
function animationComplete() {
- ok( test.hasClass( "testClass" ), "class change during animateClass was not lost" );
+ assert.hasClasses( test, "testClass", "class change during animateClass was not lost" );
equal( test.height(), 100, "css change during animateClass was not lost" );
start();
}