Skip to content
Permalink
Browse files

Tests: Prevent default on anchor click to avoid navigation

  • Loading branch information...
jzaefferer authored and arschmitz committed Oct 6, 2015
1 parent b58ad12 commit e310d9f16094e5236dbfcfbfa6fc684091dd7668
Showing with 2 additions and 1 deletion.
  1. +2 −1 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();
} );

0 comments on commit e310d9f

Please sign in to comment.
You can’t perform that action at this time.