]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar: Use new has/lacksClasses assertions for all class checks
authorAlexander Schmitz <arschmitz@gmail.com>
Tue, 10 Mar 2015 14:23:43 +0000 (10:23 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 11 Mar 2015 20:05:40 +0000 (16:05 -0400)
tests/unit/progressbar/progressbar_methods.js

index 4439b60786a6e045df9f07627efd2e9da1bcca1e..c665566b53b1b0ad1f8b61184bb57309787c42d1 100644 (file)
@@ -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() {