From 3b85fd240ead3e5cac592edf85dd964b4ec74c2c Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Tue, 10 Mar 2015 10:23:43 -0400 Subject: Progressbar: Use new has/lacksClasses assertions for all class checks --- tests/unit/progressbar/progressbar_methods.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/progressbar') 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() { -- cgit v1.2.3