From: Scott González Date: Tue, 10 Jul 2012 18:01:23 +0000 (-0400) Subject: Menu tests: Proper detection for absence of ui-state-disabled class. X-Git-Tag: 1.9.0-rc.1~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70c5cce84e2003adb1e54526467808bc7c7b199c;p=jquery-ui.git Menu tests: Proper detection for absence of ui-state-disabled class. --- diff --git a/tests/unit/menu/menu_options.js b/tests/unit/menu/menu_options.js index a5df70026..1ccbb20ab 100644 --- a/tests/unit/menu/menu_options.js +++ b/tests/unit/menu/menu_options.js @@ -18,7 +18,7 @@ test( "{ disabled: true }", function() { log(); } }); - ok( element.is( ".ui-state-disabled" ), "Missing ui-state-disabled class" ); + ok( element.hasClass( "ui-state-disabled" ), "Missing ui-state-disabled class" ); log( "click", true ); click( element, "1" ); log( "afterclick" ); @@ -33,7 +33,7 @@ test( "{ disabled: false }", function() { log(); } }); - ok( element.not( ".ui-state-disabled" ), "Has ui-state-disabled class" ); + ok( !element.hasClass( "ui-state-disabled" ), "Has ui-state-disabled class" ); log( "click", true ); click( element, "1" ); log( "afterclick" );