aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-07-10 14:01:23 -0400
committerScott González <scott.gonzalez@gmail.com>2012-07-10 14:01:23 -0400
commit70c5cce84e2003adb1e54526467808bc7c7b199c (patch)
tree93983457c117ece8b32abecd1a7c6c8fa07b56f1
parent51c0878c41bf5880bfee58417c71727607c1d21f (diff)
downloadjquery-ui-70c5cce84e2003adb1e54526467808bc7c7b199c.tar.gz
jquery-ui-70c5cce84e2003adb1e54526467808bc7c7b199c.zip
Menu tests: Proper detection for absence of ui-state-disabled class.
-rw-r--r--tests/unit/menu/menu_options.js4
1 files changed, 2 insertions, 2 deletions
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" );