mediawiki-extensions-Popups/tests/node-qunit
Sam Smith 76b8c18ca5 reducers: Make PREVIEW_SHOW require a token
Like the FETCH_COMPLETE and ABANDON_END actions, the PREVIEW_SHOW action
was delayed but not conditionally reduced. As ABANDON_END is delayed,
there's a potential for a race and if ABANDON_END is reduced before
PREVIEW_SHOW, then there's no interaction to reduce the action into,
which causes an error, e.g. T159490#3165276 and T162373. Making
PREVIEW_SHOW require a token stops the error occurring in this scenario.

An alternative would be to clear the timeout created in
ext.popups.Preview#show in #hide. However, this would be inconsistent
with actions#fetch and actions#abandon.

Bug: T159490
Change-Id: Ibd2c0c6f45e4392582cc6ed08517f6ca1146d57a
2017-04-11 14:06:04 +01:00
..
changeListeners actions: Add token to PREVIEW_SHOW 2017-04-11 09:26:22 +01:00
gateway Handle RESTBase 404 2017-04-06 18:03:11 +02:00
preview Test: Migrate preview/model.test.js to node-qunit 2017-02-20 20:01:01 +01:00
reducers reducers: Make PREVIEW_SHOW require a token 2017-04-11 14:06:04 +01:00
actions.test.js actions: Add token to PREVIEW_SHOW 2017-04-11 09:26:22 +01:00
changeListener.test.js Test: Migrate changeListener.test.js to node-qunit 2017-02-20 20:01:01 +01:00
counts.test.js Set up qunit running in node to migrate tests to commonjs 2017-02-20 20:01:01 +01:00
integration.test.js actions: Simplify delaying FETCH_COMPLETE 2017-03-30 17:48:58 -07:00
isEnabled.test.js Disable Previews when Navigation Popups Gadget is enabled 2017-04-06 13:11:17 -04:00
previewBehavior.test.js preview: Add click behavior 2017-03-30 17:08:08 -07:00
schema.test.js Tests: Extract createStubMap 2017-03-01 12:40:42 +01:00
settingsDialog.test.js Tests: Migrate settingsDialog.test.js to node qunit 2017-02-22 12:14:07 +01:00
statsvInstrumentation.test.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
stubs.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
userSettings.test.js Tests: Migrate userSettings.test.js to node-qunit 2017-03-01 12:47:07 +01:00
wait.test.js Test: Migrate wait.test.js to node-qunit 2017-02-22 12:13:37 +01:00