@@ -462,39 +462,39 @@ QUnit.test( "swipe not fired when coordinate change >= 75", function( assert ) {
462
462
swipeTimedTest ( assert , { timeout : 1000 , coordChange : 75 , expected : false } ) ;
463
463
} ) ;
464
464
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 ) ;
467
467
468
- // ForceTouchSupport ();
468
+ forceTouchSupport ( ) ;
469
469
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 ( ) { } ) ;
472
472
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
+ } ;
477
477
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
+ } ) ;
485
485
486
- // $( "#qunit-fixture" ).trigger( "touchstart" );
486
+ $ ( "#qunit-fixture" ) . trigger ( "touchstart" ) ;
487
487
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
+ } ) ;
495
495
496
- // $( "#qunit-fixture" ).trigger( "touchmove" );
497
- // } );
496
+ $ ( "#qunit-fixture" ) . trigger ( "touchmove" ) ;
497
+ } ) ;
498
498
499
499
QUnit . test ( "Swipe get cords returns proper values" , function ( assert ) {
500
500
var location ,
0 commit comments