mediawiki-extensions-Discus.../tests/data
Bartosz Dziewoński 99b5de8038 Split Data class into ResourceLoaderData and LanguageData
The Data class contained utilities for two unrelated purposes.
Split each half to a separate class.

Notably, this improves the signature of the getLocalData() function.

Change-Id: Icde615fb9d483fee1f352c34909b37f8ffde8081
2022-02-19 19:37:34 +01:00
..
arwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
arwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
ckbwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
ckbwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
commonswiki-config.json Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01:00
commonswiki-data.json Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01:00
enwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
enwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
frwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
frwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
huwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
huwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
itwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
itwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
nlwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
nlwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
plwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
plwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
README.txt Split Data class into ResourceLoaderData and LanguageData 2022-02-19 19:37:34 +01:00
srwiki-config.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
srwiki-data.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00

Minimal overrides for LanguageData::getLocalData() and mw.config
required for us to be able to parse HTML generated by the given wiki.

To make one of these files, run the following in browser console:

config.json:
  JSON.stringify( mw.config.get( [ 'wgContentLanguage', 'wgArticlePath', 'wgNamespaceIds', 'wgFormattedNamespaces' ] ), null, '\t' )

data.json:
  JSON.stringify( mw.loader.moduleRegistry[ 'ext.discussionTools.init' ].packageExports[ 'parser/data.json' ], null, '\t' )