aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/progressbar
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-03-10 10:23:43 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-03-11 16:05:40 -0400
commit3b85fd240ead3e5cac592edf85dd964b4ec74c2c (patch)
tree45858cff4b60a651844b301456290715baeb812e /tests/unit/progressbar
parent144826d17548eb989f05330cc45d23cc9dbd5cc2 (diff)
downloadjquery-ui-3b85fd240ead3e5cac592edf85dd964b4ec74c2c.tar.gz
jquery-ui-3b85fd240ead3e5cac592edf85dd964b4ec74c2c.zip
Progressbar: Use new has/lacksClasses assertions for all class checks
Diffstat (limited to 'tests/unit/progressbar')
-rw-r--r--tests/unit/progressbar/progressbar_methods.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/progressbar/progressbar_methods.js b/tests/unit/progressbar/progressbar_methods.js
index 4439b6078..c665566b5 100644
--- a/tests/unit/progressbar/progressbar_methods.js
+++ b/tests/unit/progressbar/progressbar_methods.js
@@ -9,14 +9,14 @@ test( "destroy", function() {
});
});
-test( "disable", function() {
+test( "disable", function( assert ) {
expect( 3 );
var element = $( "#progressbar" ).progressbar().progressbar( "disable" );
- ok( element.progressbar( "widget" ).hasClass( "ui-state-disabled" ), "element gets ui-state-disabled" );
+ assert.hasClasses( element.progressbar( "widget" ), "ui-state-disabled" );
ok( element.progressbar( "widget" ).attr( "aria-disabled" ), "element gets aria-disabled" );
- ok( element.progressbar( "widget" ).hasClass( "ui-progressbar-disabled" ), "element gets ui-progressbar-disabled" );
+ assert.hasClasses( element.progressbar( "widget" ), "ui-progressbar-disabled" );
});
test( "value", function() {