mediawiki-extensions-Popups/tests/node-qunit
Sam Smith 7f91068ecf Don't show preview if user has abandoned link
If the user dwells on a link for long enough, then the gateway makes a
request, which is allowed to complete regardless of whether or not the
response is required.

If the user abandons the link but the request completes before the
abandon completes - currently, ABANDON_END_DELAY is 300 ms - then the
preview will be rendered temporarily.

Fix this by not rendering the preview if the user has started to abandon
the link.

Bug: T163350
Change-Id: I154dde4e3ccaed3d11cb023c85c44451fc0ad957
2017-04-24 15:35:07 +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 Don't show preview if user has abandoned link 2017-04-24 15:35:07 +01:00
actions.test.js actions: Conditionally dispatch ABANDON_* 2017-04-18 20:03:58 +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