mediawiki-extensions-Discus.../tests/data
Bartosz Dziewoński f934e9aefd Add integration tests using pages from sr.wp
For testing our handling of language variants.

Bug: T259818
Change-Id: Id25b537fecd789640c209ff7f30e777455a3aece
2020-09-16 22:07:16 +00:00
..
arwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
arwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
ckbwiki-config.json Add integration tests using pages from ckb.wp 2020-09-01 01:50:33 +02:00
ckbwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
enwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
enwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
frwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
frwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
huwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
huwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
nlwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
nlwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
plwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
plwiki-data.json Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
README.txt Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
srwiki-config.json Add integration tests using pages from sr.wp 2020-09-16 22:07:16 +00:00
srwiki-data.json Add integration tests using pages from sr.wp 2020-09-16 22:07:16 +00:00

Minimal overrides for Hooks::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, 2 )

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