| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit requires all function parameters to be used, not just the last one.
In cases where that's not possible as we need to match an external API, there's
an escape hatch of prefixing an unused argument with `_`.
This change makes it easier to catch unused AMD dependencies and unused
parameters in internal functions the API of which we may change at will, among
other things.
Unused AMD dependencies have been removed as part of this commit.
Closes gh-4381
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous regex caused the final jQuery binary to have syntax errors for
var-modules with names starting with "return". For example, the following module
wouldn't work when the file is named `returnTrue.js`:
```js
define( function() {
"use strict";
return function returnTrue() {
return true;
};
} );
```
Closes gh-4389
|
|
|
|
|
|
| |
It was needed when QUnit 1.x one used but we've since upgraded to QUnit 2.x.
Closes gh-4312
Ref gh-4307
|
|
|
|
|
|
| |
The default reporter is very verbose as it prints all the test names it
encounters. We already use the dot reporter for Karma tests.
Closes gh-4313
|
|
|
|
|
|
|
|
|
|
|
| |
So far, we've been testing that jQuery element iteration works with polyfilled
Symbol & transpiled for-of via a Node test with jsdom with the Symbol global
removed. Unfortunately, jsdom now requires Symbol to be present for its internal
functionality so such a test is no longer possible. Instead, it's been migrated
to an iframe test with transpiled JavaScript.
This PR also enables us to use ECMAScript 2017 or newer in Node.js code.
Closes gh-4305
|
|
|
| |
Close gh-3929
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Update QUnit to 1.23.1
- Remove unused dl#dl from test/index.html
- Remove unused map#imgmap from test/index.html
- Ensure all urls to data use baseURI
- Add the 'grunt karma:main' task
- customContextFile & customDebugFile
- Add 'npm run jenkins' script
Close gh-3744
Fixes gh-1999
|
|
|
|
|
|
| |
Without this patch Jenkins tests fail as jQuery job names there contain spaces,
e.g. "jQuery Core".
Closes gh-3821
|
|
|
|
|
|
|
| |
The promises-aplus-tests sets up a default 200 ms Mocha timeout. This makes
our tests randomly fail on Jenkins. 2 seconds will be safer.
Closes gh-3791
|
| |
|
|
|
|
| |
Fixes gh-3574
|
| |
|
| |
|
|
|
|
|
| |
Fixes gh-3237
Close gh-3533
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code replacing @CODE in wrapper.js was written so that it expected
both the code and the next line to start in the first column. This commit
adjusts the regex so to get rid of that assumption and to work properly
regardless of number of lines with comments after this block.
While this is technically not necessary for our code, contributors sometimes
re-format the wrapper file in their pull requests and the error
messages they get don't tell them what's the real problem with their code.
Closes gh-3429
|
| |
|
|
|
|
|
| |
Fixes gh-3260
Closes gh-3321
|
|
|
|
|
|
|
|
| |
- For compability reasons, we had already added the global
in AMD mode, but without noConflict. This adds back noConflict
to AMD (which fixes noConflict mode in the tests).
Fixes gh-2930
|
|
|
|
|
|
|
| |
The new regex from after the switch from JSHint to ESLint wasn't catching
the ESLint pragma correctly.
Also, the spacing of the pragma comment was updated to match other comments.
|
|
|
|
|
|
| |
Use eslint pragmas, fix new errors, etc
Closes gh-3148
|
| |
|
| |
|
|
|
|
|
| |
Fixes gh-3094
Close gh-3116
|
|
|
|
| |
Fixes gh-2945
|
|
|
|
|
|
|
|
| |
Single- and no-argument calls act like Promise.resolve.
Multi-argument calls act like Promise.all.
Fixes gh-3029
Closes gh-3059
|
|
|
|
|
|
|
| |
The comment (& the JSHint pragma) doesn't make sense in the context of the
full built file.
Closes gh-3078
|
|
|
|
| |
Fixes gh-3077
|
|
|
|
|
|
|
| |
Employs strict mode to simplify Deferred callback context handling.
Fixes gh-3060
Closes gh-3061
|
|
|
|
|
|
|
|
|
| |
- Make jQuery.ready promise-compatible
- Gives up sync guarantee for post-ready callbacks
Fixes gh-1778
Fixes gh-1823
Close gh-2891
|
|
|
|
|
| |
Fixes gh-2890
Closes gh-2988
|
|
|
|
|
| |
Fixes gh-2979
Close gh-2981
|
|
|
|
|
| |
Fixes gh-2975
Close gh-2976
|
|
|
|
| |
Ref gh-2945
|
|
|
|
| |
Fixes gh-2898
|
|
|
|
| |
Fixes gh-2841
|
|
|
|
|
|
|
| |
The win-spawn package is deprecated.
Refs gh-2877
Refs 67c96a59f5af9e8404b3f904028e1c730d647498
|
|
|
|
| |
Closes gh-2761
|
|
|
|
|
| |
Fixes gh-2653
Close gh-2711
|
| |
|
| |
|
|
|
|
|
|
|
| |
Remove the cwd from the paths, so the regex doesn't kick in on "var"
Fixes gh-2450
Closes gh-2641
|
|
|
|
|
|
| |
Fixes gh-2505
Closes gh-2509
Refs gh-2483
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
jsdom 3 requires Python & Visual Studio on Windows which is a significant
barrier to contributors. Newer jsdom versions don't require pre-compiling
but work only on io.js. This commit installs the new jsdom everywhere (it
does install in old Node.js, it just won't work) and executes Node-related
tests only on newer Nodes or if a working jsdom version is installed. The
latter can be achieved by running the `old_jsdom` task.
Node.js is merging with io.js soon so this will become a smaller problem over
time.
One drawback is our Jenkins setup runs on Node 0.10 so it won't be running
Node tests anymore. We have Travis set up on io.js, though so all PRs
have those tests run. When the new LTS Node.js arrives (as it soon merges
with io.js) we should update our Jenkins infrastructure so that it runs on this
new version.
Fixes gh-2519
Closes gh-2526
|
|
|
|
| |
Fixes gh-2056
|
|
|
|
| |
Closes gh-2487
|
| |
|
|
|
|
|
| |
Fixes gh-2399
Close gh-2400
|
|
|
|
|
|
|
|
|
|
| |
Make iterating over jQuery objects possible using ES 2015 for-of:
for ( node of $( "<div id=narwhal>" ) ) {
console.log( node.id ); // "narwhal"
}
Fixes gh-1693
|
|
|
|
| |
Utilize the assert module, avoid inline JSHint comments.
|
|
|
|
|
|
|
| |
Related:
https://github.com/bower/bower.json-spec/commit/a325da3d79baab018c572d75dc1781b12322f6cd
Close gh-2304
|