});
});
-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() {