Skip to content
Permalink
Browse files

Progressbar: Use new has/lacksClasses assertions for all class checks

  • Loading branch information
arschmitz committed Mar 10, 2015
1 parent 144826d commit 3b85fd240ead3e5cac592edf85dd964b4ec74c2c
Showing with 3 additions and 3 deletions.
  1. +3 −3 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() {

0 comments on commit 3b85fd2

Please sign in to comment.
You can’t perform that action at this time.