Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 894e326

Browse files
committed
Event: Fix scrolling test using wrong function name
- Test name: scrolling prevented when coordinate change > 10
1 parent 32302bc commit 894e326

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

tests/unit/event/event_core.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -462,39 +462,39 @@ QUnit.test( "swipe not fired when coordinate change >= 75", function( assert ) {
462462
swipeTimedTest( assert, { timeout: 1000, coordChange: 75, expected: false } );
463463
} );
464464

465-
// QUnit.asyncTest( "scrolling prevented when coordinate change > 10", function( assert ) {
466-
// assert.expect( 1 );
465+
QUnit.asyncTest( "scrolling prevented when coordinate change > 10", function( assert ) {
466+
assert.expect( 1 );
467467

468-
// ForceTouchSupport();
468+
forceTouchSupport();
469469

470-
// // ensure the swipe custome event is setup
471-
// $( "#qunit-fixture" ).bind( "swipe", function() {} );
470+
// ensure the swipe custome event is setup
471+
$( "#qunit-fixture" ).bind( "swipe", function() {} );
472472

473-
// $.Event.prototype.preventDefault = function() {
474-
// assert.ok( true, "prevent default called" );
475-
// QUnit.start();
476-
// };
473+
$.Event.prototype.preventDefault = function() {
474+
assert.ok( true, "prevent default called" );
475+
QUnit.start();
476+
};
477477

478-
// // NOTE bypass the trigger source check
479-
// $.testHelper.mockOriginalEvent( {
480-
// touches: [ {
481-
// clientX: 0,
482-
// clientY: 0
483-
// } ]
484-
// } );
478+
// NOTE bypass the trigger source check
479+
$.testHelper.mockOriginalEvent( {
480+
touches: [ {
481+
clientX: 0,
482+
clientY: 0
483+
} ]
484+
} );
485485

486-
// $( "#qunit-fixture" ).trigger( "touchstart" );
486+
$( "#qunit-fixture" ).trigger( "touchstart" );
487487

488-
// // NOTE bypass the trigger source check
489-
// $.testHelper.mockOriginalEvent( {
490-
// touches: [ {
491-
// clientX: 200,
492-
// clientY: 0
493-
// } ]
494-
// } );
488+
// NOTE bypass the trigger source check
489+
$.testHelper.mockOriginalEvent( {
490+
touches: [ {
491+
clientX: 200,
492+
clientY: 0
493+
} ]
494+
} );
495495

496-
// $( "#qunit-fixture" ).trigger( "touchmove" );
497-
// } );
496+
$( "#qunit-fixture" ).trigger( "touchmove" );
497+
} );
498498

499499
QUnit.test( "Swipe get cords returns proper values", function( assert ) {
500500
var location,

0 commit comments

Comments
 (0)