aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-01-30 09:59:26 -0500
committerAlexander Schmitz <arschmitz@gmail.com>2015-03-11 16:05:40 -0400
commit5b359d0e1070e1163448d26f9b9ae6b313ecc088 (patch)
tree8772175bb99c037a7b6bc02c647e96556368446b /tests/unit/resizable
parent3b85fd240ead3e5cac592edf85dd964b4ec74c2c (diff)
downloadjquery-ui-5b359d0e1070e1163448d26f9b9ae6b313ecc088.tar.gz
jquery-ui-5b359d0e1070e1163448d26f9b9ae6b313ecc088.zip
Resizable: Use new has/lacksClasses assertions for all class checks
Diffstat (limited to 'tests/unit/resizable')
-rw-r--r--tests/unit/resizable/resizable.html1
-rw-r--r--tests/unit/resizable/resizable_methods.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/resizable/resizable.html b/tests/unit/resizable/resizable.html
index a44346e7c..3713252b3 100644
--- a/tests/unit/resizable/resizable.html
+++ b/tests/unit/resizable/resizable.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({
css: [ "core", "resizable" ],
diff --git a/tests/unit/resizable/resizable_methods.js b/tests/unit/resizable/resizable_methods.js
index abb8951f9..997293099 100644
--- a/tests/unit/resizable/resizable_methods.js
+++ b/tests/unit/resizable/resizable_methods.js
@@ -5,15 +5,15 @@
module( "resizable: methods" );
-test( "disable", function() {
+test( "disable", function( assert ) {
expect( 5 );
var element = $( "#resizable1" ).resizable({ disabled: false }),
chainable = element.resizable( "disable" );
- ok( !element.resizable( "widget" ).hasClass( "ui-state-disabled" ), "element does not get ui-state-disabled" );
+ assert.lacksClasses( element.resizable( "widget" ), "ui-state-disabled" );
ok( !element.resizable( "widget" ).attr( "aria-disabled" ), "element does not get aria-disabled" );
- ok( element.resizable( "widget" ).hasClass( "ui-resizable-disabled" ), "element gets ui-resizable-disabled" );
+ assert.hasClasses( element.resizable( "widget" ), "ui-resizable-disabled" );
equal( element.resizable( "option", "disabled" ), true, "disabled option setter" );
equal( chainable, element, "disable is chainable" );
});