mediawiki-extensions-Discus.../tests/cases/comments.json
Bartosz Dziewoński b68832ace0 Fix parsing of non-English titles in tests
We were calling Title::newFromText() before setupEnv(), which meant
that the title for each test case was parsed using the default rules
for English, rather than the rules for the specified wiki.

This only makes a practical difference for tests with self-links.
Changed the only such test to demonstrate the fix.

Change-Id: I45561f1c9f0d149e2b743f0000b742bf6fc014af
2022-03-18 18:24:07 +00:00

219 lines
8.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"name": "plwiki oldparser",
"title": "Wikipedia:Kawiarenka/Artykuły dyskusja/Archiwum/2018-październik",
"dom": "cases/pl-big-oldparser/pl-big-oldparser.html",
"expected": "../cases/pl-big-oldparser/pl-big-oldparser.json",
"config": "../data/plwiki-config.json",
"data": "../data/plwiki-data.json"
},
{
"name": "plwiki parsoid",
"title": "Wikipedia:Kawiarenka/Artykuły dyskusja/Archiwum/2018-październik",
"dom": "cases/pl-big-parsoid/pl-big-parsoid.html",
"expected": "../cases/pl-big-parsoid/pl-big-parsoid.json",
"config": "../data/plwiki-config.json",
"data": "../data/plwiki-data.json"
},
{
"name": "enwiki oldparser",
"title": "Wikipedia:Village pump (technical)/Archive 175",
"dom": "cases/en-big-oldparser/en-big-oldparser.html",
"expected": "../cases/en-big-oldparser/en-big-oldparser.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "enwiki parsoid",
"title": "Wikipedia:Village pump (technical)/Archive 175",
"dom": "cases/en-big-parsoid/en-big-parsoid.html",
"expected": "../cases/en-big-parsoid/en-big-parsoid.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "ckbwiki oldparser",
"title": "ویکیپیدیا:دیوەخان (پێشنیارەکان)",
"dom": "cases/ckb-big-oldparser/ckb-big-oldparser.html",
"expected": "../cases/ckb-big-oldparser/ckb-big-oldparser.json",
"config": "../data/ckbwiki-config.json",
"data": "../data/ckbwiki-data.json"
},
{
"name": "ckbwiki parsoid",
"title": "ویکیپیدیا:دیوەخان (پێشنیارەکان)",
"dom": "cases/ckb-big-parsoid/ckb-big-parsoid.html",
"expected": "../cases/ckb-big-parsoid/ckb-big-parsoid.json",
"config": "../data/ckbwiki-config.json",
"data": "../data/ckbwiki-data.json"
},
{
"name": "arwiki no-paragraph oldparser",
"title": "نقاش المستخدم:Khaled",
"dom": "cases/ar-no-paragraph-oldparser/ar-no-paragraph-oldparser.html",
"expected": "../cases/ar-no-paragraph-oldparser/ar-no-paragraph-oldparser.json",
"config": "../data/arwiki-config.json",
"data": "../data/arwiki-data.json"
},
{
"name": "arwiki no-paragraph parsoid",
"title": "نقاش المستخدم:Khaled",
"dom": "cases/ar-no-paragraph-parsoid/ar-no-paragraph-parsoid.html",
"expected": "../cases/ar-no-paragraph-parsoid/ar-no-paragraph-parsoid.json",
"config": "../data/arwiki-config.json",
"data": "../data/arwiki-data.json"
},
{
"name": "arwiki nbsp-timezone oldparser",
"title": "يكيبيديا:إخفاء أرقام الآي بي",
"dom": "cases/ar-nbsp-timezone-oldparser/ar-nbsp-timezone-oldparser.html",
"expected": "../cases/ar-nbsp-timezone-oldparser/ar-nbsp-timezone-oldparser.json",
"config": "../data/arwiki-config.json",
"data": "../data/arwiki-data.json"
},
{
"name": "arwiki nbsp-timezone parsoid",
"title": "يكيبيديا:إخفاء أرقام الآي بي",
"dom": "cases/ar-nbsp-timezone-parsoid/ar-nbsp-timezone-parsoid.html",
"expected": "../cases/ar-nbsp-timezone-parsoid/ar-nbsp-timezone-parsoid.json",
"config": "../data/arwiki-config.json",
"data": "../data/arwiki-data.json"
},
{
"name": "frwiki fr-unsigned oldparser",
"title": "Discussion:Le Monde",
"dom": "cases/fr-unsigned-oldparser/fr-unsigned-oldparser.html",
"expected": "../cases/fr-unsigned-oldparser/fr-unsigned-oldparser.json",
"config": "../data/frwiki-config.json",
"data": "../data/frwiki-data.json"
},
{
"name": "frwiki fr-unsigned parsoid",
"title": "Discussion:Le Monde",
"dom": "cases/fr-unsigned-parsoid/fr-unsigned-parsoid.html",
"expected": "../cases/fr-unsigned-parsoid/fr-unsigned-parsoid.json",
"config": "../data/frwiki-config.json",
"data": "../data/frwiki-data.json"
},
{
"name": "itwiki it-unsigned oldparser",
"title": "Aiuto:Sportello informazioni",
"dom": "cases/it-unsigned-oldparser/it-unsigned-oldparser.html",
"expected": "../cases/it-unsigned-oldparser/it-unsigned-oldparser.json",
"config": "../data/itwiki-config.json",
"data": "../data/itwiki-data.json"
},
{
"name": "itwiki it-unsigned parsoid",
"title": "Aiuto:Sportello informazioni",
"dom": "cases/it-unsigned-parsoid/it-unsigned-parsoid.html",
"expected": "../cases/it-unsigned-parsoid/it-unsigned-parsoid.json",
"config": "../data/itwiki-config.json",
"data": "../data/itwiki-data.json"
},
{
"name": "srwiki sr-ec variant",
"title": "Википедија:Трг/Архива/Техника/35",
"dom": "cases/sr-ec/sr-ec.html",
"expected": "../cases/sr-ec/sr-ec.json",
"config": "../data/srwiki-config.json",
"data": "../data/srwiki-data.json"
},
{
"name": "srwiki sr-el variant",
"title": "Википедија:Trg/Arhiva/Tehnika/35",
"dom": "cases/sr-el/sr-el.html",
"expected": "../cases/sr-el/sr-el.json",
"config": "../data/srwiki-config.json",
"data": "../data/srwiki-data.json"
},
{
"name": "Accidental dt tags (old parser)",
"title": "Talk:T279445",
"dom": "cases/dt-tags-oldparser/dt-tags-oldparser.html",
"expected": "../cases/dt-tags-oldparser/dt-tags-oldparser.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "Accidental dt tags (Parsoid)",
"title": "Talk:T279445",
"dom": "cases/dt-tags-parsoid/dt-tags-parsoid.html",
"expected": "../cases/dt-tags-parsoid/dt-tags-parsoid.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "Single comment, heading",
"title": "Talk:Single comment",
"dom": "cases/single-comment-no-heading/single-comment-no-heading.html",
"expected": "../cases/single-comment-no-heading/single-comment-no-heading.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "Single comment with heading",
"title": "Talk:Single comment",
"dom": "cases/single-comment-heading/single-comment-heading.html",
"expected": "../cases/single-comment-heading/single-comment-heading.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "Manually added signature with LRM",
"title": "Overleg:Charlie_Chaplin",
"dom": "cases/lrm-signature/lrm-signature.html",
"expected": "../cases/lrm-signature/lrm-signature.json",
"config": "../data/nlwiki-config.json",
"data": "../data/nlwiki-data.json"
},
{
"name": "Signature which is just a selflink",
"title": "Dyskusja_wikipedysty:Ed",
"dom": "cases/selflink-signature/selflink-signature.html",
"expected": "../cases/selflink-signature/selflink-signature.json",
"config": "../data/plwiki-config.json",
"data": "../data/plwiki-data.json"
},
{
"name": "Comments inside references (old parser)",
"title": "Talk:T301213",
"dom": "cases/reflist-oldparser/reflist-oldparser.html",
"expected": "../cases/reflist-oldparser/reflist-oldparser.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "Comments inside references (Parsoid)",
"title": "Talk:T301213",
"dom": "cases/reflist-parsoid/reflist-parsoid.html",
"expected": "../cases/reflist-parsoid/reflist-parsoid.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
},
{
"name": "Link using fallback 8-bit encoding (invalid UTF-8)",
"title": "Wikipédia:Kocsmafal (műszaki)/Archív32",
"dom": "cases/fallback-encoding-link/fallback-encoding-link.html",
"expected": "../cases/fallback-encoding-link/fallback-encoding-link.json",
"config": "../data/huwiki-config.json",
"data": "../data/huwiki-data.json"
},
{
"name": "Fake headings using ';' syntax in wikitext (<dt> tags)",
"title": "Wikipedia:Propozycje do Artykułów na Medal/Apostoł Pawieł",
"dom": "cases/fake-headings/fake-headings.html",
"expected": "../cases/fake-headings/fake-headings.json",
"config": "../data/plwiki-config.json",
"data": "../data/plwiki-data.json"
},
{
"name": "Signatures in funny places",
"title": "Talk:Signatures funny",
"dom": "cases/signatures-funny/signatures-funny.html",
"expected": "../cases/signatures-funny/signatures-funny.json",
"config": "../data/enwiki-config.json",
"data": "../data/enwiki-data.json"
}
]