Skip to content

Commit fce00bc

Browse files
committedSep 29, 2021
Tests: Take development jQuery versions from releases.jquery.com
code.jquery.com is now used just for the specific versions.
1 parent bbcdd76 commit fce00bc

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
 

‎CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Make sure you have reproduced the bug with all browser extensions and add-ons di
4747

4848
### Try the latest version of jQuery
4949

50-
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).
50+
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/).
5151

5252
### Try an older version of jQuery
5353

@@ -188,7 +188,7 @@ $ git checkout main
188188

189189
### Test Suite Tips...
190190

191-
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.
191+
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).
192192

193193
Example:
194194

‎Gruntfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ module.exports = function( grunt ) {
169169
},
170170
frameworks: [ "qunit" ],
171171
files: [
172-
"https://code.jquery.com/jquery-3.x-git.min.js",
172+
"https://releases.jquery.com/git/jquery-3.x-git.min.js",
173173
...karmaFilesExceptJQuery
174174
],
175175
client: {
@@ -194,7 +194,7 @@ module.exports = function( grunt ) {
194194

195195
options: {
196196
files: [
197-
"https://code.jquery.com/jquery-3.x-git.slim.min.js",
197+
"https://releases.jquery.com/git/jquery-3.x-git.slim.min.js",
198198
...karmaFilesExceptJQuery
199199
]
200200
}

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The production build is minified and does not generate console warnings. It will
2727
| Debugging enabled | <p align="center">✓</p> | |
2828
| Minified | | <p align="center">✓</p> |
2929
| 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) |
30-
| \* 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) |
30+
| \* 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) |
3131

3232

3333
\* **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.

‎test/testinit.js

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ TestManager = {
4646
file = projectRoot + "/dist/" + projectName + ".js";
4747
} else if ( version === "min" ) {
4848
file = projectRoot + "/dist/" + projectName + ".min.js";
49+
} else if ( version.indexOf( "git" ) === 0 ||
50+
version.indexOf( "3.x-git" ) === 0 ) {
51+
file = "https://releases.jquery.com/git/" + projectName + "-" + version + ".js";
4952
} else if ( /^[\w\.\-]+$/.test( version ) ) {
5053
file = "https://code.jquery.com/" + projectName + "-" + version + ".js";
5154
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.