aboutsummaryrefslogtreecommitdiffstats
path: root/test/index.html
Commit message (Collapse)AuthorAgeFilesLines
* Build: Restore the external directoryMichał Gołębiowski-Owczarek2021-03-241-5/+5
| | | | | | | | | | | | In gh-4466, we removed the `external` directory in favor of loading some files directly from `node_modules`. This works fine locally but when deploying code for tests, this makes it impossible to not deploy `node_modules` as well. To avoid the issue, this change restores usage of the `external` directory. One change is that we no longer commit this directory to the repository, its only purpose is to have clear isolation from `node_modules`. Ref gh-4466 Closess gh-4865
* Build: Use the US spelling of "favor"Necmettin Karakaya2020-07-221-1/+1
| | | Closes gh-4752
* Build: Make Karma work in ES modules modeMichał Gołębiowski-Owczarek2019-12-161-2/+10
| | | | | | 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/+2
| | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* Build: Remove the external directory, read from node_modules directlyMichał Gołębiowski-Owczarek2019-08-261-5/+5
| | | | | | Now that Sizzle is gone & we use npm, we can read from node_modules directly and skip the setup that copies some files to the external directory. Closes gh-4466
* Build: Update QUnit from 1.23.1 to 2.9.2Michał Gołębiowski-Owczarek2019-03-041-1/+0
| | | Closes gh-4307
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-245/+2
| | | | | | | | | | | | | - 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
* Tests: Simulate events when CI hinders use of native onesRichard Gibson2017-07-201-5/+0
| | | | Ref gh-3732
* Build: Update npm deps, fix Sinon npmcopy configMichał Gołębiowski2016-01-271-1/+1
| | | | | | | | | | | | All deps were updated except: * jsdom - tests using a Symbol polyfill are hacky and break with newer jsdom; we need to re-do them properly first * qunitjs - versions 1.19.0 & 1.20.0 introduce race conditions to the tests, making the fail randomly Those two packages will be updated once issues related to them get resolved. Fixes gh-2877
* Tests: fixed grammar in commentHenry Wong2016-01-131-1/+1
| | | | Close gh-2757
* Effects: Finish should call progressThomas Tortorini2015-09-081-0/+1
| | | | | Fixes gh-2283 Closes gh-2292
* Effects: Add tests for jQuery.TweenCorey Frang2015-06-261-1/+1
|
* Event: Remove fake originalEvent from jQuery.Event.simulateGabriel Schulhof2015-05-291-0/+5
| | | | | Fixes gh-2300 Closes gh-2303
* Deferred: Backwards-compatible standards interoperabilityRichard Gibson2015-03-201-0/+1
| | | | | Fixes gh-1722 Closes gh-1996
* Tests: make top of the HTML suite compliant with style guideOleg Gaidarenko2015-02-191-7/+5
| | | | | | See http://contribute.jquery.org/style-guide/html/ Closes gh-2098
* Build: Move all external libraries to external directoryScott González2014-06-241-4/+4
| | | | Closes gh-1593
* Tests: Remove html5 shivDave Methvin2014-01-091-7/+0
|
* Manage bower dependencies with grunt-bowercopyTimmy Willison2013-12-061-4/+4
| | | | | | | | | | | | 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.
* Effects: Integrate sinon fake timers into tests. Close gh-1377.John Paul2013-11-241-0/+1
|
* Use grunt and bower packages as local dependencies. Close gh-1433.Timmy Willison2013-11-141-3/+3
|
* Use full version of jQuery 1.9.1Oleg2013-11-081-2/+5
| | | | Had some weird failures in IE with xhr build of 1.9.1
* Convert testrunner to an AMD module and ensure jQuery is on the page when ↵Timmy Willison2013-09-061-0/+7
| | | | executing the testrunner (another race condition amplified by swarm)
* Move test loader to testinit.js. Fix race condition with dependency loading.Timmy Willison2013-09-061-54/+1
|
* Use requirejs to load the testswarm inject scriptTimmy Willison2013-09-061-2/+15
|
* Pass all tests (and load Sizzle fixture correctly) when loading with AMDTimmy Willison2013-08-291-30/+44
|
* Fixed pulling in Sizzle subproject when testing with min/dev.Oleg Gaidarenko2013-08-161-0/+6
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-57/+27
|
* Fix paths for qunit filesOleg2013-07-241-2/+2
|
* Include Sizzle and Qunit with bower. Fixes #14118.Timmy Willison2013-07-101-3/+3
|
* Fix #13596; #13722: .replaceWith consistency. Close gh-1216.Richard Gibson2013-04-161-1/+1
|
* Adjust tabIndex propHook for modern browsers and return -1 where ↵Oleg Gaidarenko2013-04-081-0/+6
| | | | appropriate. Close gh-1228.
* Separate test/unit/wrap.js; make tests not fail when wrap module excludedMichał Gołębiowski2013-04-091-0/+1
|
* Fix #13265 #13332: traversing methods with text nodes. Close gh-1145.Richard Gibson2013-02-131-1/+1
|
* Ref #13316: Sync all documents on full vs. minified source. Close gh-1147.Richard Gibson2013-02-071-1/+1
|
* Fix #13310. Get the right display value for disconnected nodes. Close gh-1156.Oleg2013-02-041-0/+1
|
* Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens ↵Timmy Willison2013-01-301-1/+1
| | | | #13132, #10406.
* Fix #13316. Use minified version in unit testing.Dave Methvin2013-01-261-6/+6
|
* Fix failing tests, add support for empty spans in Opera. Supplements #13132, ↵Timmy Willison2013-01-211-1/+1
| | | | #10406.
* Test: Update index.html to new QUnit format. Close gh-1061.Timo Tijhof2012-12-101-8/+4
| | | | Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
* update SizzleRichard Gibson2012-11-161-10/+13
|
* No ticket: speedup effects testsRichard Gibson2012-11-121-1/+3
|
* Fix testing of no-ajax custom buildsRichard Gibson2012-11-011-0/+3
|
* No ticket: fix effects test failure in IE6. Close gh-1012.Timo Tijhof2012-10-311-14/+14
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-21/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed inline usage of QUnit.reset() because it is messing with the expectation model as reset does .empty() which does a recursive cleanData on everything in #qunit-fixture, so any expectJqData above .reset() would fail negatively. Instead of calling reset inline, either updated the following assertions to take previous assertions' state into account, or broke the test() up into 2 tests at the point where it would call QUnit.reset. * After introducing the new memory leak discovery a whole bunch of tests were failing as they didn't clean up everything. However I didn't (yet) add QUnit.expectJqData calls all over the place because in most if not all of these cases it is valid data storage. For example in test "data()", there will be an internal data key for "parsedAttrs". This particular test isn't intending to test for memory leaks, so therefor I made the new discovery system only push failures when the test contains at least 1 call to QUnit.expectJqData. When not, we'll assume that whatever data is being stored is acceptable because the relevant elements still exist in the DOM anyway (QUnit.reset will remove the elements and clean up the data automatically). I did add a "Always check jQuery.data" mode in the test suite that will trigger it everywhere. Maybe one day we'll include a call to everywhere, but for now I'm keeping the status quo: Only consider data left in storage to be a problem if the test says so ("opt-in"). * Had to move #fx-tests inside the fixture because ".remove()" test would otherwise remove stuff permanently and cause random other tests to fail as "#hide div" would yield an empty collection. (Why wasn't this in the fixture in the first place?) As a result moving fx-tests into the fixture a whole bunch of tests failed that relied on arbitrary stuff about the document-wide or fixture-wide state (e.g. number of divs etc.). So I had to adjust various tests to limit their sample data to not be so variable and unlimited... * Moved out tests for expando cleanup into a separate test. * Fixed implied global variable 'pass' in effects.js that was causing "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that uses a global variable "pass = function () {};" ... * Removed spurious calls to _removeData. The new test exposed various failures e.g. where div[0] isn't being assigned any data anyway. (queue.js and attributes.js toggleClass). * Removed spurious clean up at the bottom of test() functions that are already covered by the teardown (calling QUnit.reset or removeClass to supposedly undo any changes). * Documented the parentheses-less magic line in toggleClass. It appeared that it would always keep the current class name if there was any (since the assignment started with "this.className || ...". Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently). Only added the comment for now, though I prefer clarity with logical operators, I'd rather not face the yayMinPD[1] in this test-related commit. * Updated QUnit urlConfig to the new format (raw string is deprecated). * Clean up odd htmlentities in test titles, QUnit escapes this. (^\s+test\(.*)(&gt\;) → $1> (^\s+test\(.*)(&lt\;) → $1< [1] jQuery MinJsGz Release Police Department (do the same, download less)
* Shim/shiv the datalist element for crabby Uncle oldIE.Dave Methvin2012-09-051-1/+1
|
* Let subproject tests use their own test fixture. Closes gh-867.Dave Methvin2012-07-191-2/+5
|
* Extracts the serialization code from the ajax module so that alternative ↵jaubourg2012-07-131-0/+1
| | | | ajax implementations can use it without the need for the whole ajax module to be included in the build.
* Fix #8482, offsetParent should not return null. Closes gh-847.Nowres Rafid2012-07-061-0/+3
|
* Update Sizzle: reduced size. Add Sizzle's utilities.js to unit teststimmywil2012-06-271-0/+1
|