mediawiki-extensions-Popups/tests/qunit
Sam Smith a6423fbc75 Redefine when Page Previews are enabled
The Page Previews A/B test was disabled in T144490. After the changes
for that task had been deployed we discovered that the old definition
for when previews are enabled was invalid.

Previews are enabled:
* If the beta feature is enabled and the user has enabled the beta
  feature.
* The user hasn't disabled previews via the settings modal.
* And soon, if the beta feature is disabled and the user hasn't disabled
  previews via their user preferences (see T146889).

Changes:
* mw.popups#createExperiment -> mw.popups#isEnabled
* Make mw.popups#isEnabled act like a factory to maintain backwards
  compatibility.
* Update the associated tests.

Bug: T152687
Change-Id: I713a90dfb29866b27738e7d19e8a22518a12d417
2016-12-16 10:35:55 +00:00
..
ext.popups Redefine when Page Previews are enabled 2016-12-16 10:35:55 +00:00
ext.popups.core.test.js Add LINK_DWELL and LINK_ABANDON actions 2016-11-10 11:47:55 +00:00
ext.popups.desktopRenderer.test.js Directory structure should reflect the ResourceLoader definitions 2016-10-19 20:52:40 +00:00
ext.popups.renderer.article.test.js Remove optional survey link 2016-11-09 14:41:03 +00:00
ext.popups.schemaPopups.utils.test.js Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00