mediawiki-extensions-Popups/tests/qunit/ext.popups
Sam Smith e4719c4918 Don't hide preview if it's interacted with
Action creator changes:
* Make the linkAbandon action creator asynchronous by splitting it into
  two distinct actions, LINK_ABANDON_START and _END, the latter of which
  is dispatched after a 300 ms delay.
* Introduce the previewDwell and previewAbandon action creators. The
  latter is an asynchronous action that mirrors the linkAbandon action.

Reducer changes:
* Make the LINK_DWELL, LINK_ABANDON_END, and PREVIEW_ABANDON_END action
  hide a preview, if one has been shown.
* Make the LINK_ABANDON_END action NOOP if:
  * The user has interacted with another link, or
  * The user is interacting with the preview.

Supporting changes:
* Update the mw.popups.reducers#preview and #renderer unit tests to use
  an empty previous state so that the tests are more resilient to
  modifications of the state tree.

Change-Id: I2ecf575bbb59bb64772f75da9b5a29c071b46a8d
2016-11-28 17:15:37 +00:00
..
actions.test.js Don't hide preview if it's interacted with 2016-11-28 17:15:37 +00:00
changeListener.test.js Add footer link change listener 2016-11-16 15:20:34 +00:00
experiment.test.js Link Previews -> Page Previews 2016-11-18 09:51:06 +00:00
footerLinkChangeListener.test.js Add footer link change listener 2016-11-16 15:20:34 +00:00
gateway.test.js gateway: Remove parentheticals from extract 2016-11-21 10:41:45 +00:00
linkTitleChangeListener.test.js Add link title change listener 2016-11-18 09:51:01 +00:00
processLinks.test.js Link Previews -> Page Previews 2016-11-18 09:51:06 +00:00
reducers.test.js Don't hide preview if it's interacted with 2016-11-28 17:15:37 +00:00
userSettings.test.js Add BOOT action 2016-11-09 10:40:59 +00:00
wait.test.js Render previews 2016-11-24 18:07:03 +00:00