aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button/button_events.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-02-02 19:25:52 -0500
committerAlexander Schmitz <arschmitz@gmail.com>2015-03-11 16:05:39 -0400
commit415675eca122c6fcc635bb41838f303bdb8fa6f8 (patch)
tree34b40b3c472ef6e123c5c181500cb53e243806c6 /tests/unit/button/button_events.js
parent0f370b3e35247cac544e1702f0d436853ab89193 (diff)
downloadjquery-ui-415675eca122c6fcc635bb41838f303bdb8fa6f8.tar.gz
jquery-ui-415675eca122c6fcc635bb41838f303bdb8fa6f8.zip
Button: Use new has/lacksClasses assertions for all class checks
Diffstat (limited to 'tests/unit/button/button_events.js')
-rw-r--r--tests/unit/button/button_events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/button/button_events.js b/tests/unit/button/button_events.js
index 2fd038325..2a8bb7727 100644
--- a/tests/unit/button/button_events.js
+++ b/tests/unit/button/button_events.js
@@ -13,14 +13,14 @@ test("buttonset works with single-quote named elements (#7505)", function() {
}).click();
});
-asyncTest( "when button loses focus, ensure active state is removed (#8559)", function() {
+asyncTest( "when button loses focus, ensure active state is removed (#8559)", function( assert ) {
expect( 1 );
var element = $( "#button" ).button();
element.one( "keypress", function() {
element.one( "blur", function() {
- ok( !element.is(".ui-state-active"), "button loses active state appropriately" );
+ assert.lacksClasses( element, "ui-state-active", "button loses active state appropriately" );
start();
}).blur();
});