Skip to content

Commit

Permalink
Tests: Take development jQuery versions from releases.jquery.com
Browse files Browse the repository at this point in the history
code.jquery.com is now used just for the specific versions.
  • Loading branch information
mgol committed Sep 29, 2021
1 parent bbcdd76 commit fce00bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Make sure you have reproduced the bug with all browser extensions and add-ons di

### Try the latest version of jQuery

Bugs in old versions of jQuery may have already been fixed. In order to avoid reporting known issues, make sure you are always testing against the [latest build](http://code.jquery.com/jquery.js).
Bugs in old versions of jQuery may have already been fixed. In order to avoid reporting known issues, make sure you are always testing against the [latest jQuery version](https://releases.jquery.com/jquery/).

### Try an older version of jQuery

Expand Down Expand Up @@ -188,7 +188,7 @@ $ git checkout main

### Test Suite Tips...

By default the plugin runs against the current (jquery-3.x-git WIP) version of jQuery. You can select a different version by specifying it in the URL. Files are always retrieved from code.jquery.com.
By default the plugin runs against the current (jquery-3.x-git WIP) version of jQuery. You can select a different version by specifying it in the URL. Files are always retrieved from code.jquery.com or releases.jquery.com (the latter for development versions).

Example:

Expand Down
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ module.exports = function( grunt ) {
},
frameworks: [ "qunit" ],
files: [
"https://code.jquery.com/jquery-3.x-git.min.js",
"https://releases.jquery.com/git/jquery-3.x-git.min.js",
...karmaFilesExceptJQuery
],
client: {
Expand All @@ -194,7 +194,7 @@ module.exports = function( grunt ) {

options: {
files: [
"https://code.jquery.com/jquery-3.x-git.slim.min.js",
"https://releases.jquery.com/git/jquery-3.x-git.slim.min.js",
...karmaFilesExceptJQuery
]
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The production build is minified and does not generate console warnings. It will
| Debugging enabled | <p align="center">✓</p> | |
| Minified | | <p align="center">✓</p> |
| Latest release (*may be hotlinked if desired*) | [jquery-migrate-3.3.2.js](https://code.jquery.com/jquery-migrate-3.3.2.js) | [jquery-migrate-3.3.2.min.js](https://code.jquery.com/jquery-migrate-3.3.2.min.js) |
| \* Latest work-in-progress build | [jquery-migrate-git.js](https://code.jquery.com/jquery-migrate-git.js) | [jquery-migrate-git.min.js](https://code.jquery.com/jquery-migrate-git.min.js) |
| \* Latest work-in-progress build | [jquery-migrate-git.js](https://releases.jquery.com/git/jquery-migrate-git.js) | [jquery-migrate-git.min.js](https://releases.jquery.com/git/jquery-migrate-git.min.js) |


\* **Work-in-progress build:** Although this file represents the most recent updates to the plugin, it may not have been thoroughly tested. We do not recommend using this file on production sites since it may be unstable; use the released production version instead.
Expand Down
3 changes: 3 additions & 0 deletions test/testinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ TestManager = {
file = projectRoot + "/dist/" + projectName + ".js";
} else if ( version === "min" ) {
file = projectRoot + "/dist/" + projectName + ".min.js";
} else if ( version.indexOf( "git" ) === 0 ||
version.indexOf( "3.x-git" ) === 0 ) {
file = "https://releases.jquery.com/git/" + projectName + "-" + version + ".js";
} else if ( /^[\w\.\-]+$/.test( version ) ) {
file = "https://code.jquery.com/" + projectName + "-" + version + ".js";
} else {
Expand Down

0 comments on commit fce00bc

Please sign in to comment.