aboutsummaryrefslogtreecommitdiffstats
path: root/test/jquery.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: Make dev mode work in Karma again, serve source files from diskMichał Gołębiowski-Owczarek2020-01-081-11/+22
| | | | | | | | | | | | | | | | | | PR gh-4550 added support for running ES modules & AMD tests via Karma. This required reading the `esmodules` & `amd` props from both `QUnit.config` & `QUnit.urlParams`. By picking these two properties manually, the `dev` one stopped being respected while ones handled directly by QUnit were fine (like `hidepassed`). Instead of maintaining the full list of options, the code now iterates over QUnit URL config and handles the fallbacks in a more generic way. Apart from that, all jQuery source & test files are now read directly from disk instead of being cached by Karma so that one can run `grunt karma:chrome-debug` & work on a fix without restarting that Karma run after each change. A similar effect could have been achieved by setting `autoWatch` to `true` but then the main Karma page runs tests in an iframe by default when `grunt karma:chrome-debug` is run instead of relying on the current debug flow. Closes gh-4574 Ref gh-4550
* Build: Make Karma work in ES modules modeMichał Gołębiowski-Owczarek2019-12-161-30/+34
| | | | | | Also, run such a suite in CI to make sure modules are working as expected when used directly. Closes gh-4550
* Build: Auto-convert sources to AMDMichał Gołębiowski-Owczarek2019-12-091-2/+21
| | | | | | | | | | | | | | | jQuery source has been migrated in gh-4541 from AMD to ES modules. To maintain support for consumers of our AMD modules, this commits adds a task transpiling the ES modules sources in `src/` to AMD in `amd/`. A "Load with AMD" checkbox was also restored to the QUnit setup. Note that, contrary to jQuery 3.x, AMD files need to be generated via `grunt amd` or `grunt` as sources are not authored in ECMAScript modules. To achieve a similar no-compile experience during jQuery 4.x testing, use the new "Load as modules" checkbox which works in all supported browsers except for IE & Edge (the legacy, EdgeHTML-based one). Ref gh-4541 Closes gh-4554
* Core: Migrate from AMD to ES modules 🎉Michał Gołębiowski-Owczarek2019-11-181-16/+21
| | | | | | | | | | | | | | | | | | | | | | Migrate all source AMD modules to ECMAScript modules. The final bundle is compiled by a custom build process that uses Rollup under the hood. Test files themselves are still loaded via RequireJS as that has to work in IE 11. Tests can now be run in "Load as modules" mode which replaces the previous "Load with AMD" option. That option of running tests doesn't work in IE and Edge as it requires support for dynamic imports. Some of the changes required by the migration: * check `typeof` of `noGlobal` instead of using the variable directly as it's not available when modules are used * change the nonce module to be an object as ECMASscript module exports are immutable * remove some unused exports * import `./core/parseHTML.js` directly in `jquery.js` so that it's not being cut out when the `ajax` module is excluded in a custom compilation Closes gh-4541
* Core: Preserve CSP nonce on scripts in DOM manipulationMichał Gołębiowski-Owczarek2019-01-141-1/+1
| | | | Fixes gh-3541 Closes gh-4269
* Tests: Allow Karma to load unminfied sourceRichard Gibson2018-09-071-14/+17
| | | Closes gh-4128
* Tests: Update path calculationJordan Beland2017-08-161-1/+2
| | | | Fixes gh-3756 Closes gh-3757
* Tests: Update the loader so test pages always get jQueryRichard Gibson2017-01-091-33/+34
| | | | | | Pages used for iframe tests will now successfully load jQuery, even when opened directly in the browser. Closes gh-3489
* Build: use hard-coded path to sizzle in selector-sizzleTimmy Willison2016-02-101-4/+1
| | | | Fixes gh-2898
* Build: correct style tests files which could be automatically correctedOleg Gaidarenko2015-09-071-9/+11
|
* Build: Move all external libraries to external directoryScott González2014-06-241-1/+1
| | | | Closes gh-1593
* Manage bower dependencies with grunt-bowercopyTimmy Willison2013-12-061-1/+1
| | | | | | | | | | | | Tracked bower dependencies are located at "src/sizzle" and "test/libs". The source-destination mapping is in the Gruntfile. When updating a bower dependency, update the version in bower.json, run `grunt bower`, and then commit the result. When adding a dependency, update the bowercopy task accordingly. Fixes #14615. Closes gh-1452.
* Use grunt and bower packages as local dependencies. Close gh-1433.Timmy Willison2013-11-141-1/+1
|
* Ref 71b2ac52: Disallow 2.x bypass of environmental helper methodsRichard Gibson2013-11-121-13/+0
|
* Fix #14492: More correct jQuery.parseJSON. Close gh-1419.Richard Gibson2013-11-121-1/+2
| | | | | | | | (cherry picked from commit 60a6178131afec97b68c9a45bc24459f7b8bd905) Conflicts: src/ajax/parseJSON.js
* Woops, lint grunt fileTimmy Willison2013-09-101-1/+1
|
* Map Sizzle to a path with config to allow users to put Sizzle wherever they wantTimmy Willison2013-09-101-1/+6
|
* Convert testrunner to an AMD module and ensure jQuery is on the page when ↵Timmy Willison2013-09-061-4/+2
| | | | executing the testrunner (another race condition amplified by swarm)
* Pass all tests (and load Sizzle fixture correctly) when loading with AMDTimmy Willison2013-08-291-27/+14
|
* Use window.QUnit to detect the top window when loading with AMDTimmy Willison2013-08-291-1/+3
|
* Fix tests for testswarmTimmy Willison2013-08-191-2/+1
|
* Correct QUnit check, this might fix swarm failuresOleg2013-08-191-2/+2
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-5/+77
|
* Ref #13316: Sync all documents on full vs. minified source. Close gh-1147.Richard Gibson2013-02-071-0/+5