aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/button/events.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/button/events.js b/tests/unit/button/events.js
index 0bec5a7d2..f780fb494 100644
--- a/tests/unit/button/events.js
+++ b/tests/unit/button/events.js
@@ -9,7 +9,8 @@ asyncTest( "Anchor recieves click event when spacebar is pressed", function() {
expect( 1 );
var element = $( "#anchor-button" ).button();
- element.on( "click", function() {
+ element.on( "click", function( event ) {
+ event.preventDefault();
ok( true, "click occcured as a result of spacebar" );
start();
} );