aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/button/events.js')
-rw-r--r--tests/unit/button/events.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unit/button/events.js b/tests/unit/button/events.js
index d778b4a2b..15a285046 100644
--- a/tests/unit/button/events.js
+++ b/tests/unit/button/events.js
@@ -3,15 +3,15 @@ define( [
"ui/widgets/button"
], function( $ ) {
-module("button: events");
+module( "button: events" );
-test("buttonset works with single-quote named elements (#7505)", function() {
+test( "buttonset works with single-quote named elements (#7505)", function() {
expect( 1 );
- $("#radio3").buttonset();
- $("#radio33").on( "click", function(){
+ $( "#radio3" ).buttonset();
+ $( "#radio33" ).on( "click", function() {
ok( true, "button clicks work with single-quote named elements" );
- }).trigger( "click" );
-});
+ } ).trigger( "click" );
+} );
asyncTest( "when button loses focus, ensure active state is removed (#8559)", function( assert ) {
expect( 1 );
@@ -22,15 +22,15 @@ asyncTest( "when button loses focus, ensure active state is removed (#8559)", fu
element.one( "blur", function() {
assert.lacksClasses( element, "ui-state-active", "button loses active state appropriately" );
start();
- }).trigger( "blur" );
- });
+ } ).trigger( "blur" );
+ } );
element.trigger( "focus" );
- setTimeout(function() {
+ setTimeout( function() {
element
.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } )
.simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } );
- });
-});
+ } );
+} );
} );