mediawiki-extensions-Discus.../tests/cases/fake-headings/fake-headings.json
Bartosz Dziewoński 77614a2d02 tests: Fix root node / container handling
Since times immemorial, and for reasons lost to history, our test code
was adding an extra <div> wrapper before parsing the HTML used for
tests. This wasn't a problem, until now, because I want to add some
tests for T303396 that need to check that the *real* wrappers present
in some test cases are handled correctly.

Changes to test cases mostly remove a leading "0/" from serialized
ranges, corresponding to removing the extra wrapper.

Change-Id: Ia50e3590538c8cd274b02d2a937ba1a3fbb4ac89
2022-03-10 18:43:58 +01:00

349 lines
8 KiB
JSON

[
{
"placeholderHeading": false,
"type": "heading",
"range": [
"0/1/0",
"0/1/1"
],
"headingLevel": 3,
"level": 0,
"name": "h-PuchaczTrado-2020-09-28T19:29:00.000Z",
"id": "h-Apostoł_Pawieł-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2020-09-28T19:29:00.000Z",
"author": "PuchaczTrado",
"range": [
"2",
"5/6/27"
],
"signatureRanges": [
[
"5/3",
"5/6/27"
]
],
"level": 1,
"name": "c-PuchaczTrado-2020-09-28T19:29:00.000Z",
"id": "c-PuchaczTrado-2020-09-28T19:29:00.000Z-Apostoł_Pawieł",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2020-09-30T21:50:00.000Z",
"author": "Pibwl",
"range": [
"8/0/0",
"8/0/8/26"
],
"signatureRanges": [
[
"8/0/5",
"8/0/8/26"
]
],
"level": 2,
"name": "c-Pibwl-2020-09-30T21:50:00.000Z",
"id": "c-Pibwl-2020-09-30T21:50:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2020-10-04T20:26:00.000Z",
"author": "PuchaczTrado",
"range": [
"8/0/9/0/0",
"8/0/9/0/4/26"
],
"signatureRanges": [
[
"8/0/9/0/1",
"8/0/9/0/4/26"
]
],
"level": 3,
"name": "c-PuchaczTrado-2020-10-04T20:26:00.000Z",
"id": "c-PuchaczTrado-2020-10-04T20:26:00.000Z-Pibwl-2020-09-30T21:50:00.000Z",
"warnings": [],
"replies": []
}
]
},
{
"type": "comment",
"timestamp": "2020-10-15T17:57:00.000Z",
"author": "D kuba",
"range": [
"8/2/0",
"8/2/4/27"
],
"signatureRanges": [
[
"8/2/1",
"8/2/4/27"
]
],
"level": 2,
"name": "c-D_kuba-2020-10-15T17:57:00.000Z",
"id": "c-D_kuba-2020-10-15T17:57:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2020-10-15T19:22:00.000Z",
"author": "PuchaczTrado",
"range": [
"8/2/5/0/0",
"8/2/5/0/6/27"
],
"signatureRanges": [
[
"8/2/5/0/3",
"8/2/5/0/6/27"
]
],
"level": 3,
"name": "c-PuchaczTrado-2020-10-15T19:22:00.000Z",
"id": "c-PuchaczTrado-2020-10-15T19:22:00.000Z-D_kuba-2020-10-15T17:57:00.000Z",
"warnings": [],
"replies": []
}
]
},
{
"type": "comment",
"timestamp": "2020-10-17T09:58:00.000Z",
"author": "D kuba",
"range": [
"8/4/0",
"8/4/4/27"
],
"signatureRanges": [
[
"8/4/1",
"8/4/4/27"
]
],
"level": 2,
"name": "c-D_kuba-2020-10-17T09:58:00.000Z",
"id": "c-D_kuba-2020-10-17T09:58:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2020-10-17T11:18:00.000Z",
"author": "PuchaczTrado",
"range": [
"8/4/5/0/0",
"8/4/5/0/4/27"
],
"signatureRanges": [
[
"8/4/5/0/1",
"8/4/5/0/4/27"
]
],
"level": 3,
"name": "c-PuchaczTrado-2020-10-17T11:18:00.000Z",
"id": "c-PuchaczTrado-2020-10-17T11:18:00.000Z-D_kuba-2020-10-17T09:58:00.000Z",
"warnings": [],
"replies": []
}
]
},
{
"type": "comment",
"timestamp": "2020-10-17T09:58:00.000Z",
"author": "D kuba",
"range": [
"10/0/0",
"10/0/4/27"
],
"signatureRanges": [
[
"10/0/1",
"10/0/4/27"
]
],
"level": 2,
"name": "c-D_kuba-2020-10-17T09:58:00.000Z",
"id": "c-D_kuba-2020-10-17T09:58:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z-1",
"warnings": [
"Duplicate comment ID"
],
"replies": [
{
"type": "comment",
"timestamp": "2020-10-17T11:01:00.000Z",
"author": "PuchaczTrado",
"range": [
"10/0/5/0/0",
"10/0/5/0/4/27"
],
"signatureRanges": [
[
"10/0/5/0/1",
"10/0/5/0/4/27"
]
],
"level": 3,
"name": "c-PuchaczTrado-2020-10-17T11:01:00.000Z",
"id": "c-PuchaczTrado-2020-10-17T11:01:00.000Z-D_kuba-2020-10-17T09:58:00.000Z",
"warnings": [],
"replies": []
}
]
},
{
"type": "comment",
"timestamp": "2020-10-17T09:58:00.000Z",
"author": "D kuba",
"range": [
"10/2/0",
"10/2/4/27"
],
"signatureRanges": [
[
"10/2/1",
"10/2/4/27"
]
],
"level": 2,
"name": "c-D_kuba-2020-10-17T09:58:00.000Z",
"id": "c-D_kuba-2020-10-17T09:58:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z-2",
"warnings": [
"Duplicate comment ID"
],
"replies": [
{
"type": "comment",
"timestamp": "2020-10-17T10:58:00.000Z",
"author": "PuchaczTrado",
"range": [
"10/2/5/0/0",
"10/2/5/0/4/27"
],
"signatureRanges": [
[
"10/2/5/0/1",
"10/2/5/0/4/27"
]
],
"level": 3,
"name": "c-PuchaczTrado-2020-10-17T10:58:00.000Z",
"id": "c-PuchaczTrado-2020-10-17T10:58:00.000Z-D_kuba-2020-10-17T09:58:00.000Z",
"warnings": [],
"replies": []
}
]
},
{
"type": "comment",
"timestamp": "2020-09-30T22:08:00.000Z",
"author": "Pibwl",
"range": [
"12/0/0",
"12/0/6/25"
],
"signatureRanges": [
[
"12/0/3",
"12/0/6/25"
]
],
"level": 2,
"name": "c-Pibwl-2020-09-30T22:08:00.000Z",
"id": "c-Pibwl-2020-09-30T22:08:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2020-10-04T20:26:00.000Z",
"author": "PuchaczTrado",
"range": [
"12/0/7/0/0",
"12/0/7/0/4/26"
],
"signatureRanges": [
[
"12/0/7/0/1",
"12/0/7/0/4/26"
]
],
"level": 3,
"name": "c-PuchaczTrado-2020-10-04T20:26:00.000Z",
"id": "c-PuchaczTrado-2020-10-04T20:26:00.000Z-Pibwl-2020-09-30T22:08:00.000Z",
"warnings": [],
"replies": []
}
]
},
{
"type": "comment",
"timestamp": "2020-10-09T10:34:00.000Z",
"author": "Zala",
"range": [
"18/0/0/0",
"18/0/3/26"
],
"signatureRanges": [
[
"18/0/0",
"18/0/3/26"
]
],
"level": 2,
"name": "c-Zala-2020-10-09T10:34:00.000Z",
"id": "c-Zala-2020-10-09T10:34:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": []
},
{
"type": "comment",
"timestamp": "2020-10-12T07:20:00.000Z",
"author": "PMG",
"range": [
"18/2/0/0",
"18/2/3/26"
],
"signatureRanges": [
[
"18/2/0",
"18/2/3/26"
]
],
"level": 2,
"name": "c-PMG-2020-10-12T07:20:00.000Z",
"id": "c-PMG-2020-10-12T07:20:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": []
},
{
"type": "comment",
"timestamp": "2020-10-28T18:53:00.000Z",
"author": "Nowy15",
"range": [
"18/4/0/0",
"18/4/3/26"
],
"signatureRanges": [
[
"18/4/0",
"18/4/3/26"
]
],
"level": 2,
"name": "c-Nowy15-2020-10-28T18:53:00.000Z",
"id": "c-Nowy15-2020-10-28T18:53:00.000Z-PuchaczTrado-2020-09-28T19:29:00.000Z",
"warnings": [],
"replies": []
}
]
}
]
}
]