aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/testrunner.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: migrate most grunt tasks off of gruntTimmy Willison2023-09-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Updated tasks include: - lint - npmcopy - build, minify, and process for distribution. - new custom build command using yargs - compare size of minified/gzip built files - pretest scripts, including qunit-fixture, babel transpilation, and npmcopy - node smoke tests - promises aplus tests - new watch task using `rollup.watch` directly Also: - upgraded husky and added the new lint command - updated lint config to use new "flat" config format. See https://eslint.org/docs/latest/use/configure/configuration-files-new - Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. See https://github.com/import-js/eslint-plugin-import/issues/2556 - committed package-lock.json - updated all test scripts to use the new build - added an express test server that uses middleware-mockserver (this can be used to run tests without karma) - build-all-variants is now build:all Close gh-5318
* Tests: Remove remaining obsolete jQuery.cache referencesMichał Gołębiowski-Owczarek2020-05-181-22/+2
| | | | | | PR gh-4586 removed some of those but not all. Closes gh-4715 Ref gh-4586
* Event: remove jQuery.event.globalMichał Gołębiowski-Owczarek2020-02-101-1/+0
| | | | | | | jQuery.event.global has been write-only in the jQuery source for the past few years; reading from it was removed in c2d6847de09a52496f78baebc04f317e11ece6d2 when fixing the trac-12989 bug. Closes gh-4602
* Tests: Remove obsolete jQuery data testsMichał Gołębiowski-Owczarek2020-01-131-92/+0
| | | | | The tests relied on `jQuery.cache` so they only ever worked in jQuery 1.x. Closes gh-4586
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-0/+2
| | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-2/+1
| | | | | | | | Also, run `grunt npmcopy` to sync the "external" directory with dependencies from package.json. For example, the Sinon library version didn't match. Ref gh-4234 Closes gh-4297
* Tests: Reduce the abort timeout for simple focus testingRichard Gibson2017-07-191-1/+1
| | | | Ref gh-3732
* Tests: Attach test iframes to the body for visibility-dependent codeRichard Gibson2017-04-251-0/+3
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3645
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-301-1/+1
| | | | | Fixes gh-2961 Closes gh-3278
* Tests: further improvements QUnit 2.0 migrationOleg Gaidarenko2015-09-081-8/+8
| | | | | | | | * Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Ref b930d14ce64937e9478405eee2828d4da091d2cb
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-11/+16
| | | | Fixes gh-2056
* Tests: Increase QUnit timeoutMichał Gołębiowski2015-04-271-1/+1
| | | | | | | | | | | | Android 2.3 is very slow & times out a lot in async tests, they have to be restarted multiple times to settle. Long test execution is not a huge problem as Android 2.3 is tested only periodically during the night, unstable tests are a bigger problem. This might mitigate that. In a regular scenario almost all tests should pass so increasing the timeout for all browsers shouldn't have a huge impact on overall test time. Closes gh-2232
* Tests: Minor updates for QUnit 1.16 compatibilityRichard Gibson2014-12-051-4/+3
| | | | | | More to come later. (cherry picked from commit f6f8848fbe477fa93fd27ac7f10885dd6e97f633)
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-7/+20
|
* Build: Fix code style issueOleg Gaidarenko2014-04-151-1/+0
| | | | Remove needless empty line character
* Tests: Bring back some of the clean-up logicOleg Gaidarenko2014-04-151-0/+11
|
* Tests: Do global clean up in teardown functionOleg Gaidarenko2014-04-151-0/+2
|
* Build: Use jscs to check test helpersOleg Gaidarenko2014-04-151-1/+0
| | | | Also fix issues found by jscs
* Tests: More improvments for testrunnerOleg Gaidarenko2014-04-151-39/+19
| | | | Conform to style guide and simplify it
* Tests: Remove Sizzle intergration testsOleg Gaidarenko2014-04-151-134/+0
| | | | Fixes #14818
* Tests: Simplify globals cleanupOleg Gaidarenko2014-04-151-10/+9
|
* Tests: Remove QUnit start hookOleg Gaidarenko2014-04-151-11/+1
|
* Tests: Remove uselss "keys" helperOleg Gaidarenko2014-04-151-15/+1
|
* Tests: Simplify "testTimeout" optionOleg Gaidarenko2014-04-151-1/+1
|
* Tests: Remove one of the checks for memory leakOleg2014-01-141-12/+0
| | | | This check is redundant since jQuery.fragments object does not exist anymore
* Tests: Avoid use of QUnit.reset() in tests by splitting themcjqed2013-12-231-11/+7
| | | | | Fix #14040 Close gh-1457
* No ticket: Fix subproject iframe testsRichard Gibson2013-10-111-4/+7
|
* Convert testrunner to an AMD module and ensure jQuery is on the page when ↵Timmy Willison2013-09-061-234/+235
| | | | 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-15/+0
|
* Use requirejs to load the testswarm inject scriptTimmy Willison2013-09-061-14/+0
|
* No ticket: Hide the testing-support jQuery from testsRichard Gibson2013-09-031-22/+26
|
* Pass all tests (and load Sizzle fixture correctly) when loading with AMDTimmy Willison2013-08-291-13/+27
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-2/+2
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-5/+5
| | | | in tests. Fixes #13755.
* No ticket: Revise unit tests in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-12/+15
|
* 2.0: Rewrite data.js (Incl. event, manipulation, tests)Rick Waldron2013-02-031-34/+40
|
* Revert data.js rewrite.Dave Methvin2013-01-031-62/+53
| | | | | | | | | | | | | | | | | | | | | | Reverts the following commits: commit f717226b3a44f918eec30b2d59ab257270189bc3 Author: Rick Waldron <waldron.rick@gmail.com> Date: Mon Dec 31 18:06:38 2012 -0500 Only splice from internal arrays when item actually exists. commit b9cdc4136b688963d1dc4befb169be02a0216ba9 Author: Rick Waldron <waldron.rick@gmail.com> Date: Mon Dec 31 16:20:35 2012 -0500 Updates to data.js re-write to pass events and manipulation commit d1de3000c6d50c298de14fb1ae3381d75c303723 Author: Rick Waldron <waldron.rick@gmail.com> Date: Mon Dec 31 15:09:45 2012 -0500 2.0: Rewrite data.js
* 2.0: Rewrite data.jsRick Waldron2012-12-311-53/+62
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fix #13064: better test fixture cleanup. Close gh-1075.Richard Gibson2012-12-161-2/+2
|
* Test: Update index.html to new QUnit format. Close gh-1061.Timo Tijhof2012-12-101-2/+2
| | | | Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
* Test: Remove fixtures from QUnit.done hook. Close gh-1069.Timo Tijhof2012-12-101-0/+5
| | | | | | This fixes jquery/testswarm#197. These are currently removed from the TestSwarm injector, however this is jQuery specific, and should be done from this end instead.
* Make compatible with jshint, lint test/data. Close gh-1043.Timo Tijhof2012-12-061-7/+7
|
* More improvements per @jaubourgRichard Gibson2012-12-031-1/+1
|
* Improvements per @jaubourgRichard Gibson2012-12-031-1/+1
|
* No ticket: improve global variable/ajax request trackingRichard Gibson2012-12-021-8/+8
|
* sandboxes start for real this time (fixes test failures in IE)jaubourg2012-11-271-0/+8
|
* Total revamping of the ajax unit testsjaubourg2012-11-261-1/+29
|
* No ticket: update test suite to pass QUnit globals check in most ↵Richard Gibson2012-11-051-2/+7
| | | | environments. Close gh-1016.
* Fix testing of no-ajax custom buildsRichard Gibson2012-11-011-10/+15
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-2/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)