mediawiki-extensions-Popups/tests/node-qunit
Thiemo Kreuz 51dd4b2807 Make nextState support non-flat updates
The nextState() function was not able to understand updates that
are deeper than a single level. Example:

nextState( state, { pagePreviews: { enabled: true } } )

Before, this would replace whatever was in the "pagePreviews"
property with { enabled: true }, but not merge it. In some places
a single level of recursion was done manually because of this.
This can be removed now.

This is done in preparation for splitting the "enabled" flag into
separate ones for each popup type.

Bug: T277639
Change-Id: I35911c18018ba7cd1633a4c882b978656c3fee36
2021-04-12 13:46:18 +02:00
..
changeListeners Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
gateway Much more relaxed reference type detection 2021-02-22 11:55:03 +01:00
instrumentation Minor code cleanups, e.g. utilizing arrow functions 2020-10-30 11:31:12 +01:00
integrations Hygiene: replace QUnit assert.equal with strictEqual() 2018-06-18 19:48:16 +00:00
preview eslint: Update to 0.15.3 2020-04-25 22:32:53 +01:00
reducers Make nextState support non-flat updates 2021-04-12 13:46:18 +02:00
ui Add title attribute to settings gear icon 2021-04-02 13:30:07 -06:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.2 2020-06-26 17:05:56 +01:00
actions.test.js Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
bracketedPixelRatio.test.js build: Update linters 2018-09-11 10:26:35 -07:00
changeListener.test.js build: Update linters 2018-09-11 10:26:35 -07:00
container.test.js build: Update linters 2018-09-11 10:26:35 -07:00
counts.test.js eslint: Enforce template-curly-spacing 2019-08-15 10:24:43 +02:00
experiments.test.js build: Update eslint-config-wikimedia to 0.10.0 2019-01-31 11:05:33 +01:00
formatter.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
getPageviewTracker.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
integration.test.js Rename many functions and files for clarity 2021-04-08 11:04:02 +02:00
isPagePreviewsEnabled.test.js Remove not needed userSettings.hasIsEnabled() 2021-04-08 11:57:52 +02:00
isReferencePreviewsEnabled.test.js Add qunit test for conflict with popups 2020-12-10 15:47:38 +01:00
previewBehavior.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
run.js Use 6.1.0 of @wikimedia/mw-node-qunit 2019-10-22 10:42:49 -07:00
setUserConfigFlags.test.js Add tests for bitmask code 2021-03-11 14:05:21 +01:00
stubs.js Remove not needed userSettings.hasIsEnabled() 2021-04-08 11:57:52 +02:00
title.test.js Remove obsolete mediaWiki and jQuery aliases 2019-10-22 09:30:46 +02:00
userSettings.test.js Remove not needed userSettings.hasIsEnabled() 2021-04-08 11:57:52 +02:00
wait.test.js Fix action reducer forgetting *all* duplicate dwell actions 2019-08-23 10:08:19 +02:00