aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/testrunner.js
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Run ajax tests in swarmtimmywil2011-10-131-1/+1
|
* Avoid changing html in two places; add minified jQuery as an option to the ↵timmywil2011-05-021-3/+0
| | | | main test page
* Syntax in testrunnertimmywil2011-04-281-2/+3
|
* Landing pull request 354. Adds QUnit Aliases to testrunner.js. Fixes #8991.Rick Waldron2011-04-281-0/+9
| | | | | | More Details: - https://github.com/jquery/jquery/pull/354 - http://bugs.jquery.com/ticket/8991
* Moving jQuery-core specific resets from QUnit to core.jzaefferer2010-07-271-0/+11
|
* Need to expose the isLocal change globally as well.jeresig2010-03-241-1/+1
|
* Temporarily disable ajax tests when running in TestSwam.jeresig2010-03-241-0/+4
|
* Update the TestSwarm URL to point to the new jQuery swarm location.jeresig2010-03-231-1/+1
|
* Handle auto-running of the TestSwarm injection script in the test suite.jeresig2010-03-231-0/+10
|
* core/test: replaced local qunit copy with qunit via svn:externals; inlined ↵Jörn Zaefferer2008-08-081-329/+0
| | | | styles specific to polluted.php; kept testrunner.js with just the noConflict call
* test runner: closes #3048. The text from the tests, is html-escaped.Ariel Flesler2008-06-171-1/+1
|
* test runner: the changes are:Ariel Flesler2008-05-281-12/+14
| | | | | | | - Replaced all the $ for jQuery in the tests and suite. - Added a noConflict to testrunner.js. - Modified the test for noConflict() so that it still work. - Added jQuery 1.2.1 and 1.2.3 to otherlibs.
* test runner: when errors are thrown in a test, the message is successfully ↵Ariel Flesler2008-05-121-1/+1
| | | | show on all browsers.
* jquery core: reverted qunit introduction until build scripts are updatedJörn Zaefferer2008-05-081-0/+328
|
* jquery testsuite: switch to qunitJörn Zaefferer2008-05-081-328/+0
|
* jquery testrunner: reset $.ajaxSettings after each run to prevent ↵Jörn Zaefferer2008-05-061-0/+2
| | | | sideeffects between tests
* jquery testrunner: reset global events after each run, speeds up a test run ↵Jörn Zaefferer2008-05-051-0/+1
| | | | for ajax from 16s to 10s (test/?ajax), kudos to Ariel
* - Adding the enhancements to the test runner, to accept multiple(and ↵Ariel Flesler2008-04-241-5/+23
| | | | negative) filters from the GET variables, as specified in the ticket #2738.
* testrunner: refactored url-test-filter, still regex basedJörn Zaefferer2008-04-241-2/+6
|
* jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector ↵Jörn Zaefferer2008-04-221-1/+1
| | | | to run both core and selector module
* fixed jsdoc for equalsJörn Zaefferer2007-12-041-1/+1
|
* Landing the new expando management code. Completely overhauls how data is ↵John Resig2007-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | associated with elements. Plugins will be most interested in: - jQuery.data(elem) -> Unique ID for the element - jQuery.data(elem, name) -> Named data store for the element - jQuery.data(elem, name, value) -> Saves a value to the named data store - jQuery.removeData(elem) -> Remove the expando and the complete data store - jQuery.removeData(elem, name) -> Removes just this one named data store jQuery's .remove() and .empty() automatically clean up after themselves. Once an element leaves a DOM document their events are no longer intact. Thus, statements like so: {{{ $("#foo").remove().appendTo("#bar"); }}} should be written like so: {{{ $("#foo").appendTo("#bar"); }}} in order to avoid losing the bound events.
* Reorganzing the jQuery source (first phase).John Resig2007-09-081-0/+303