aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/testrunner.js
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* no ticket: fix jQuery suite failure on AndroidRichard Gibson2012-10-171-1/+1
|
* Remove duplicate expect. Add QUnit.config.requireExpects to testrunner.js ↵Rick Waldron2012-10-151-0/+3
| | | | QUnit configurations.
* Test: Clean up and fix misc issuesTimo Tijhof2012-10-091-4/+1
| | | | | | | | | | | | * Clean up testinit and testrunner * Uncomment isLocal (at least make sure it is declared) * Rephrase environment assertions to make sense if one reads them when they pass. * Optimise an expensive loop that might be the cause of this in IE6: http://cl.ly/image/3f20053m112n
* Don't expect QUnit to clean up jQuery internal data. Close gh-883.Dave Methvin2012-08-191-2/+9
|
* Really support subproject tests in testswarm, closes gh-868Richard Gibson2012-07-221-61/+107
|
* Let subproject tests use their own test fixture. Closes gh-867.Dave Methvin2012-07-191-0/+74
|
* Relativize all urls pertaining to dist/jquery.js so users can run their ↵timmywil2012-06-041-0/+4
| | | | server from any file location; Make sure Sizzle is available for its tests in testrunner.
* Enforce 20s timeout for all unit tests.Timo Tijhof2012-04-201-4/+20
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-6/+0
| | | | deprecated in QUnit.