diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-29 09:13:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 09:13:46 -0400 |
commit | 91df20be6b488ac6cf4da291d7ee3aa5d6feac73 (patch) | |
tree | 56b5c4f8b96a8323e3a6ce9c02c3e84c85a9d6d5 /tests/lib | |
parent | 802642c37323d5fc05bfa4cee90a900953f9a98d (diff) | |
download | jquery-ui-91df20be6b488ac6cf4da291d7ee3aa5d6feac73.tar.gz jquery-ui-91df20be6b488ac6cf4da291d7ee3aa5d6feac73.zip |
Tests: replace grunt-contrib-qunit with jQuery test runner
- add filestash workflow
Close gh-2221
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/bootstrap.js | 8 | ||||
-rw-r--r-- | tests/lib/qunit.js | 7 |
2 files changed, 5 insertions, 10 deletions
diff --git a/tests/lib/bootstrap.js b/tests/lib/bootstrap.js index 98c17f4d5..fd9b1eb65 100644 --- a/tests/lib/bootstrap.js +++ b/tests/lib/bootstrap.js @@ -1,7 +1,7 @@ ( function() { "use strict"; -var DEFAULT_JQUERY_VERSION = "3.7.0"; +var DEFAULT_JQUERY_VERSION = "3.7.1"; requirejs.config( { paths: { @@ -11,7 +11,6 @@ requirejs.config( { "jquery-migrate": migrateUrl(), "jquery-simulate": "../../../external/jquery-simulate/jquery.simulate", "lib": "../../lib", - "phantom-bridge": "../../../node_modules/grunt-contrib-qunit/phantomjs/bridge", "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", @@ -33,11 +32,6 @@ define( "jquery-no-back-compat", [ "jquery" ], function( $ ) { return $; } ); -// Create a dummy bridge if we're not actually testing in PhantomJS -if ( !/PhantomJS/.test( navigator.userAgent ) ) { - define( "phantom-bridge", function() {} ); -} - // Load all modules in series function requireModules( dependencies, callback, modules ) { if ( !dependencies.length ) { diff --git a/tests/lib/qunit.js b/tests/lib/qunit.js index 7049d60a5..eac9c4a92 100644 --- a/tests/lib/qunit.js +++ b/tests/lib/qunit.js @@ -3,8 +3,7 @@ define( [ "jquery", "qunit-assert-classes", "qunit-assert-close", - "lib/qunit-assert-domequal", - "phantom-bridge" + "lib/qunit-assert-domequal" ], function( QUnit, $ ) { "use strict"; @@ -14,6 +13,8 @@ QUnit.config.requireExpects = true; QUnit.config.urlConfig.push( { id: "jquery", label: "jQuery version", + + // Keep in sync with tests/runner/jquery.js value: [ "1.8.0", "1.8.1", "1.8.2", "1.8.3", "1.9.0", "1.9.1", @@ -30,7 +31,7 @@ QUnit.config.urlConfig.push( { "3.4.0", "3.4.1", "3.5.0", "3.5.1", "3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4", - "3.7.0", + "3.7.0", "3.7.1", "3.x-git", "git", "custom" ], tooltip: "Which jQuery Core version to test against" |