aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/deferred.js
Commit message (Collapse)AuthorAgeFilesLines
* Release: remove revert artefactsOleg Gaidarenko2015-11-131-80/+80
|
* Revert "Deferred: Backwards-compatible standards interoperability"Oleg Gaidarenko2015-11-131-532/+133
| | | | This reverts commit 555a50d340706e3e1e0de09231050493d0ad841e.
* Revert "Deferred: add .catch handler"Oleg Gaidarenko2015-11-111-36/+0
| | | | This reverts commit 84ccf2606c6b97d5875774bf774f9f2aae950ae7.
* Tests: further improvements QUnit 2.0 migrationOleg Gaidarenko2015-09-081-2/+4
| | | | | | | | * 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-215/+215
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-98/+98
| | | | | | | | | | | | 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
* Build: Acknowledge Android 2.3 is not ES5-compatibleMichał Gołębiowski2015-07-201-4/+4
| | | | | | | | | | | Android 2.3 chokes on unquoted reserved words being used as property names which was making Deferred tests not run. Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser and enable the "es3" option in JSHint config. Fixes gh-2478 Closes gh-2481
* Deferred: add .catch handlerTimmy Willison2015-07-061-0/+36
| | | | Fixes gh-2102
* Deferred: Always handle progress callbacks before done/failRichard Gibson2015-04-221-0/+48
| | | | | | Fixes gh-2013 Fixes gh-2010 Closes gh-2210
* Deferred: Backwards-compatible standards interoperabilityRichard Gibson2015-03-201-82/+418
| | | | | Fixes gh-1722 Closes gh-1996
* Deferred: Fix $.when with resolved deferred and progress callbacksNicolas HENRY2014-12-251-0/+22
| | | | | Fixes gh-1894 Closes gh-1915
* No ticket: add assertions for jQuery.when( array ). Close gh-1312.Daniel Herman2013-08-191-2/+4
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-16/+12
| | | | in tests. Fixes #13755.
* Propagete context of returned deferred object in Deferred.then(). Fixes #13160nanto_vi2013-01-071-1/+17
|
* Deferred: .resolve(), .reject() and .notify() now set the callback context ↵jaubourg2012-12-071-3/+3
| | | | to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405.
* Fixing style for deferred.js unit tests. Close gh-973.Erick Ruiz de Chavez2012-10-161-79/+81
| | | | Close jquery/2012-dev-summit/#56
* deferred.promise(obj) should work with non-objects. Fixes #12521. Much ↵jaubourg2012-09-131-1/+18
| | | | needed unit tests added!
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-5/+6
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* Unit tests are linted and passing.Rick Waldron2012-06-211-10/+14
|
* Preserves context objects when multiple Deferreds are passed to $.when(). ↵jaubourg2012-05-121-6/+20
| | | | Context is an array containing the original contexts in order. When non-observable value is given, associated context is undefined. In case only a single non-observable value is given, context is the global object (thanks so much Function.prototype.apply!). Fixes #11749.
* Fix #11736. Remove deprecated Deferred.isResolved/isRejected.Dave Methvin2012-05-111-3/+1
|
* Makes Deferred implementation truly Promise/A compliant. Unit tests amended. ↵jaubourg2012-04-021-33/+37
| | | | Actually few changes required in jQuery's own source and we gained 8 bytes minified gzipped \o/.
* Have Deferred.always return the object onto which it is currently attached ↵jaubourg2011-11-091-0/+13
| | | | to enable true chainability. Fixes #10723. Unit tests added.
* Fix #10691. Remove all instances of equals() and same(), as these are ↵Mike Sherov2011-11-061-3/+3
| | | | deprecated in QUnit.
* Removes isPending and introduces state as a means to retrieve the ↵jaubourg2011-10-111-4/+6
| | | | Deferred/Promise state. Unit tests amended.
* isProgressing becomes isPending. Unit tests added.jaubourg2011-10-041-1/+4
|
* $.Callbacks, $.Topic and notify/progress on $.Deferred.jaubourg2011-09-191-117/+100
|
* Fixes #9446. Context is properly propagated using pipe. If context was the ↵jaubourg2011-07-011-0/+27
| | | | original deferred, then context is updated to next deferred in the chain. Unit tests added.
* Fixes #9104. Returning null or undefined in a pipe callback shouldn't end up ↵jaubourg2011-05-091-2/+10
| | | | throwing an exception. Silly, silly, me.
* Renames chain as pipe.jaubourg2011-04-081-16/+16
|
* Adds always and chain methods to deferreds.jaubourg2011-04-071-126/+252
|
* Moves Deferred-related code into a separate module. Context handling has ↵jaubourg2011-03-031-0/+222
been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization).