mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tests: remove code supporting jenkins and testswarm
Close gh-2251
This commit is contained in:
parent
ec3edb6876
commit
f47c7fe44d
@ -397,7 +397,6 @@ grunt.registerTask( "lint", [
|
|||||||
] );
|
] );
|
||||||
grunt.registerTask( "build", [ "requirejs", "concat" ] );
|
grunt.registerTask( "build", [ "requirejs", "concat" ] );
|
||||||
grunt.registerTask( "default", [ "lint", "build" ] );
|
grunt.registerTask( "default", [ "lint", "build" ] );
|
||||||
grunt.registerTask( "jenkins", [ "build" ] );
|
|
||||||
grunt.registerTask( "sizer", [ "requirejs:js", "uglify:main", "compare_size:all" ] );
|
grunt.registerTask( "sizer", [ "requirejs:js", "uglify:main", "compare_size:all" ] );
|
||||||
grunt.registerTask( "sizer_all", [ "requirejs:js", "uglify", "compare_size" ] );
|
grunt.registerTask( "sizer_all", [ "requirejs:js", "uglify", "compare_size" ] );
|
||||||
|
|
||||||
|
@ -77,7 +77,6 @@
|
|||||||
"load-grunt-tasks": "5.1.0",
|
"load-grunt-tasks": "5.1.0",
|
||||||
"rimraf": "4.4.1",
|
"rimraf": "4.4.1",
|
||||||
"selenium-webdriver": "4.18.1",
|
"selenium-webdriver": "4.18.1",
|
||||||
"testswarm": "1.1.2",
|
|
||||||
"yargs": "17.7.2"
|
"yargs": "17.7.2"
|
||||||
},
|
},
|
||||||
"keywords": []
|
"keywords": []
|
||||||
|
9
tests/lib/bootstrap.js
vendored
9
tests/lib/bootstrap.js
vendored
@ -14,14 +14,12 @@ requirejs.config( {
|
|||||||
"qunit-assert-classes": "../../lib/vendor/qunit-assert-classes/qunit-assert-classes",
|
"qunit-assert-classes": "../../lib/vendor/qunit-assert-classes/qunit-assert-classes",
|
||||||
"qunit-assert-close": "../../lib/vendor/qunit-assert-close/qunit-assert-close",
|
"qunit-assert-close": "../../lib/vendor/qunit-assert-close/qunit-assert-close",
|
||||||
"qunit": "../../../external/qunit/qunit",
|
"qunit": "../../../external/qunit/qunit",
|
||||||
"testswarm": "https://swarm.jquery.org/js/inject.js?" + ( new Date() ).getTime(),
|
|
||||||
"ui": "../../../ui"
|
"ui": "../../../ui"
|
||||||
},
|
},
|
||||||
shim: {
|
shim: {
|
||||||
"globalize/ja-JP": [ "globalize" ],
|
"globalize/ja-JP": [ "globalize" ],
|
||||||
"jquery-simulate": [ "jquery" ],
|
"jquery-simulate": [ "jquery" ],
|
||||||
"qunit-assert-close": [ "qunit" ],
|
"qunit-assert-close": [ "qunit" ]
|
||||||
"testswarm": [ "qunit" ]
|
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
@ -69,11 +67,6 @@ function requireTests( dependencies, options ) {
|
|||||||
|
|
||||||
dependencies = preDependencies.concat( dependencies );
|
dependencies = preDependencies.concat( dependencies );
|
||||||
|
|
||||||
// Load the TestSwarm injector, if necessary
|
|
||||||
if ( parseUrl().swarmURL ) {
|
|
||||||
dependencies.push( "testswarm" );
|
|
||||||
}
|
|
||||||
|
|
||||||
requireModules( dependencies, function( QUnit ) {
|
requireModules( dependencies, function( QUnit ) {
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
} );
|
} );
|
||||||
|
@ -1159,9 +1159,7 @@ QUnit.test( "#6817: auto scroll goes double distance when dragging", function( a
|
|||||||
scroll: true,
|
scroll: true,
|
||||||
stop: function( e, ui ) {
|
stop: function( e, ui ) {
|
||||||
assert.equal( ui.offset.top, newY, "offset of item matches pointer position after scroll" );
|
assert.equal( ui.offset.top, newY, "offset of item matches pointer position after scroll" );
|
||||||
|
assert.equal( ui.offset.top - offsetBefore.top, distance, 1, "offset of item only moves expected distance 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" );
|
|
||||||
}
|
}
|
||||||
} ),
|
} ),
|
||||||
scrollSensitivity = element.draggable( "option", "scrollSensitivity" ),
|
scrollSensitivity = element.draggable( "option", "scrollSensitivity" ),
|
||||||
@ -1217,9 +1215,8 @@ QUnit.test( "snap, snapMode, and snapTolerance", function( assert ) {
|
|||||||
moves: 1
|
moves: 1
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// TODO: fix IE8 testswarm IFRAME positioning bug so assert.close can be turned back to equal
|
assert.equal( element.offset().left, newX, 1, "doesn't snap outside the snapTolerance" );
|
||||||
assert.close( element.offset().left, newX, 1, "doesn't snap outside the snapTolerance" );
|
assert.equal( element.offset().top, newY, 1, "doesn't snap outside the snapTolerance" );
|
||||||
assert.close( element.offset().top, newY, 1, "doesn't snap outside the snapTolerance" );
|
|
||||||
|
|
||||||
newX += 3;
|
newX += 3;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user