aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/dialog_methods.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-01-30 09:57:04 -0500
committerAlexander Schmitz <arschmitz@gmail.com>2015-03-11 16:05:39 -0400
commita9fa490418c911ff8a170c5d2e87e5dbc3be3ea3 (patch)
tree1d5449288b599ec15b9f64e13221a6f365c948fd /tests/unit/dialog/dialog_methods.js
parent415675eca122c6fcc635bb41838f303bdb8fa6f8 (diff)
downloadjquery-ui-a9fa490418c911ff8a170c5d2e87e5dbc3be3ea3.tar.gz
jquery-ui-a9fa490418c911ff8a170c5d2e87e5dbc3be3ea3.zip
Dialog: Use new has/lacksClasses assertions for all class checks
Diffstat (limited to 'tests/unit/dialog/dialog_methods.js')
-rw-r--r--tests/unit/dialog/dialog_methods.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js
index ea4a7002a..c012f80a5 100644
--- a/tests/unit/dialog/dialog_methods.js
+++ b/tests/unit/dialog/dialog_methods.js
@@ -100,13 +100,12 @@ test("#4980: Destroy should place element back in original DOM position", functi
ok($.contains(container[0], modal[0]), "dialog(destroy) should place element back in original DOM position");
});
-test( "enable/disable disabled", function() {
- expect( 4 );
+test( "enable/disable disabled", function( assert ) {
+ expect( 3 );
var element = $( "<div></div>" ).dialog();
element.dialog( "disable" );
equal(element.dialog( "option", "disabled" ), false, "disable method doesn't do anything" );
- ok( !element.dialog( "widget" ).hasClass( "ui-dialog-disabled" ), "disable method doesn't add ui-dialog-disabled class" );
- ok( !element.dialog( "widget" ).hasClass( "ui-state-disabled" ), "disable method doesn't add ui-state-disabled class" );
+ assert.lacksClasses( element, "ui-dialog-disabled ui-state-disabled" );
ok( !element.dialog( "widget" ).attr( "aria-disabled" ), "disable method doesn't add aria-disabled" );
});