mediawiki-extensions-Discus.../tests/cases/selflink-signature/selflink-signature.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

38 lines
630 B
JSON

[
{
"placeholderHeading": false,
"type": "heading",
"range": [
"1/1/0",
"1/1/1"
],
"headingLevel": 2,
"level": 0,
"name": "h-Ed-2019-08-21T19:06:00.000Z",
"id": "h-Topic-2019-08-21T19:06:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2019-08-21T19:06:00.000Z",
"author": "Ed",
"range": [
"3/0",
"3/2/26"
],
"signatureRanges": [
[
"3/1",
"3/2/26"
]
],
"level": 1,
"name": "c-Ed-2019-08-21T19:06:00.000Z",
"id": "c-Ed-2019-08-21T19:06:00.000Z-Topic",
"warnings": [],
"replies": []
}
]
}
]