mediawiki-extensions-Popups/tests
joakin e865409593 Hygiene: Don't rely on .fail, use Promises/A+
Instead of using the non-standard old Promise implementation by relying
on .fail, migrate it to .catch.

In this specific case, where we were chaining promises with $.when, the
semantics from going from fail to catch actually change. .fail keeps the
promise in a rejected state, while .catch will change it to resolved
unless another error is thrown.

As such, when changing it to .catch, the catched error will be re-thrown
to keep the promise in a rejected state, so that $.when.then is not
executed.

Additional changes:
* Make actions.js#fetch return its promise for ease of testing.
* Test FETCH_FAILED, which was fully untested.

Bug: T173819
Change-Id: Ibd380b714586979c6e60b4c969d17f36a0796b52
2017-08-23 19:36:05 +02:00
..
browser Tag previews acceptance tests with @integration 2016-12-13 14:47:32 +00:00
node-qunit Hygiene: Don't rely on .fail, use Promises/A+ 2017-08-23 19:36:05 +02:00
phpunit Popups A/B test infrastructure 2017-08-17 21:07:07 +00:00
.jscsrc.js Update linting and enable command line QUnit 2016-11-08 13:56:17 -05:00