aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/queue.js
Commit message (Collapse)AuthorAgeFilesLines
* Build:Tests: Fix custom build tests, verify on Travis Michał Gołębiowski-Owczarek2020-01-071-0/+8
| | | | | | | | | | | This commit fixes unit tests for the following builds: 1. The no-deprecated build: `custom:-deprecated` 2. The current slim build: `custom:-ajax,-effects` 3. The future (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects` It also adds separate Travis jobs for the no-deprecated & slim builds. Closes gh-4577
* Core: Remove IE-specific support tests, rely on document.documentModeMichał Gołębiowski-Owczarek2019-05-131-54/+51
| | | | | | | Also, update some tests to IE-sniff when deciding whether to skip a test. Fixes gh-4386 Closes gh-4387
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-30/+37
| | | | | | | | 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
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-1/+1
| | | | Fixes gh-3609
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-301-1/+1
| | | | | Fixes gh-2961 Closes gh-3278
* Build: ESLint detailsOleg Gaidarenko2016-06-111-1/+1
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* CSS: Make show/hide/toggle methods a moduleDave Methvin2015-10-181-0/+3
| | | | | | | | Unit test changes some uses of .show() and .hide() to .css( "display", ... ), there was already an implicit assumption in several of the existing tests. Fixes gh-2193 Close gh-2648
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-120/+120
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-90/+90
| | | | | | | | | | | | http://qunitjs.com/upgrade-guide-2.x/ For most of the boring work was used https://github.com/apsdehal/qunit-migrate package However, it can't update local qunit helpers, plus in some places old QUnit.asyncTest signature is still used Fixes gh-2540
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-2/+6
| | | | Closes gh-2507
* Correct spacing.Michał Gołębiowski2013-04-151-2/+2
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-17/+16
| | | | in tests. Fixes #13755.
* Move size() test to deprecated.js and avoid in other tests. Close gh-1237.Michał Gołębiowski2013-04-081-4/+3
|
* No ticket. Add additional test for jQuery.queue. Closes gh-1235Oleg Gaidarenko2013-04-081-0/+6
|
* Ref #13283, move .andSelf() to deprecated.js. Close gh-1170.Nguyen Phuc Lam2013-02-261-1/+1
|
* No ticket: speedup test suite. Close gh-1020.Richard Gibson2012-11-081-9/+10
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Convert all jQuery.removeData(foo, bar, true) calls to jQuery._remove(foo, bar)Rick Waldron2012-10-161-1/+1
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fix #12278. Promises on non-default queue wait until a dequeue is attempted ↵Corey Frang2012-08-191-2/+29
| | | | on an empty queue. Close gh-893.
* Unit tests are linted and passing.Rick Waldron2012-06-211-5/+5
|
* Add quick-start documentation for testing with QUnit and using jQuery's ↵timmywil2012-05-291-4/+2
| | | | helper methods.
* Fix #11767. Modularize build and unit tests for exluding effects.Richard Gibson2012-05-281-54/+59
| | | | Closes gh-785. To build a version of jQuery without effects, use `grunt build:*:*:-effects`. The unit tests feature-check for the interfaces and skip the unit tests for effects if they don't detect it.
* Optimizations to animation queue/promise logic, closes gh-776.Corey Frang2012-05-221-74/+55
|
* Firefox stalls without longer delays.Dave Methvin2012-02-231-3/+3
| | | | Not really happy with this, but perhaps Jenkins will be.
* Fix #10967: jQuery.fn.promise returns provided objectRichard Gibson2012-02-131-0/+10
|
* Fix #10006: Allow .show() to work on detached elements.Oleg2012-01-121-0/+1
|
* Fix #5571. Setters should treat `undefined` as a no-op and be chainable.Richard Gibson2011-12-061-2/+4
|
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-22/+22
| | | | deprecated in QUnit.
* Leave the opacity test unanchored in case of floating point rounding browser ↵timmywil2011-10-111-2/+2
| | | | errors; small fix in queue tests. Fixes #5145.
* Landing pull request 514. 1.7 - queue refactoring to handle delay stop - ↵Corey Frang2011-09-281-0/+38
| | | | | | | | Fixes #6150. More Details: - https://github.com/jquery/jquery/pull/514 - http://bugs.jquery.com/ticket/6150
* Removes duplicate test block. Fixes #9913Rick Waldron2011-07-261-19/+0
|
* Animation callbacks keep their place in the queue stack. Fixes #9220.timmywil2011-05-131-0/+24
|
* merge with master and resolve more conflictslouisremi2011-04-121-5/+106
|\
| * Adds _mark and _unmark as a mean to keep track of ongoing non-queued ↵jaubourg2011-04-111-5/+106
| | | | | | | | animations in fn.promise.
* | third batchlouisremi2011-04-121-11/+11
|/
* Update unit tests with a leak detection mechanism for the various jQuery ↵Colin Snover2011-01-091-1/+1
| | | | globals and fix all leaks in the tests.
* Clean trailing whitespace from all files.Colin Snover2010-12-301-23/+23
|
* Split the queue code out from data.js into a dedicated queue.js file (also ↵John Resig2009-12-061-0/+148
split tests accordingly).