] );
grunt.registerTask( "build", [ "requirejs", "concat" ] );
grunt.registerTask( "default", [ "lint", "build" ] );
-grunt.registerTask( "jenkins", [ "build" ] );
grunt.registerTask( "sizer", [ "requirejs:js", "uglify:main", "compare_size:all" ] );
grunt.registerTask( "sizer_all", [ "requirejs:js", "uglify", "compare_size" ] );
"load-grunt-tasks": "5.1.0",
"rimraf": "4.4.1",
"selenium-webdriver": "4.18.1",
- "testswarm": "1.1.2",
"yargs": "17.7.2"
},
"keywords": []
"qunit-assert-classes": "../../lib/vendor/qunit-assert-classes/qunit-assert-classes",
"qunit-assert-close": "../../lib/vendor/qunit-assert-close/qunit-assert-close",
"qunit": "../../../external/qunit/qunit",
- "testswarm": "https://swarm.jquery.org/js/inject.js?" + ( new Date() ).getTime(),
"ui": "../../../ui"
},
shim: {
"globalize/ja-JP": [ "globalize" ],
"jquery-simulate": [ "jquery" ],
- "qunit-assert-close": [ "qunit" ],
- "testswarm": [ "qunit" ]
+ "qunit-assert-close": [ "qunit" ]
}
} );
dependencies = preDependencies.concat( dependencies );
- // Load the TestSwarm injector, if necessary
- if ( parseUrl().swarmURL ) {
- dependencies.push( "testswarm" );
- }
-
requireModules( dependencies, function( QUnit ) {
QUnit.start();
} );
} );
( function() {
- var url = window.location.search;
- url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + 9 ) );
-
- // TODO: This test occassionally fails in IE in TestSwarm
- if ( $.ui.ie && url && url.indexOf( "http" ) === 0 ) {
- return;
- }
-
QUnit.test( "invocation", function( assert ) {
var ready = assert.async();
var button, image,
scroll: true,
stop: function( e, ui ) {
assert.equal( ui.offset.top, newY, "offset of item matches pointer position after scroll" );
-
- // TODO: fix IE8 testswarm IFRAME positioning bug so assert.close can be turned back to equal
- assert.close( ui.offset.top - offsetBefore.top, distance, 1, "offset of item only moves expected distance after scroll" );
+ assert.equal( ui.offset.top - offsetBefore.top, distance, 1, "offset of item only moves expected distance after scroll" );
}
} ),
scrollSensitivity = element.draggable( "option", "scrollSensitivity" ),
moves: 1
} );
- // TODO: fix IE8 testswarm IFRAME positioning bug so assert.close can be turned back to equal
- assert.close( element.offset().left, newX, 1, "doesn't snap outside the snapTolerance" );
- assert.close( element.offset().top, newY, 1, "doesn't snap outside the snapTolerance" );
+ assert.equal( element.offset().left, newX, 1, "doesn't snap outside the snapTolerance" );
+ assert.equal( element.offset().top, newY, 1, "doesn't snap outside the snapTolerance" );
newX += 3;
assert.ok( true, "Opera <12.14 and Safari <6.0 report wrong values for $.contains in jQuery < 1.8" );
assert.ok( true, "Opera <12.14 and Safari <6.0 report wrong values for $.contains in jQuery < 1.8" );
} else {
-
- // TODO: fix IE8 testswarm IFRAME positioning bug so assert.close can be turned back to equal
- assert.close( element.offset().left, newX, 1, "doesn't snap to a removed element" );
- assert.close( element.offset().top, newY, 1, "doesn't snap to a removed element" );
+ assert.equal( element.offset().left, newX, 1, "doesn't snap to a removed element" );
+ assert.equal( element.offset().top, newY, 1, "doesn't snap to a removed element" );
}
} );
}, "with offset" );
} );
-// Currently failing in IE8 due to the iframe used by TestSwarm
-if ( !/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ) ) {
QUnit.test( "collision: fit, collision", function( assert ) {
assert.expect( 2 + ( scrollTopSupport() ? 1 : 0 ) );
win.scrollTop( 0 ).scrollLeft( 0 );
}
} );
-}
QUnit.test( "collision: flip, no collision", function( assert ) {
assert.expect( 2 );