mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 21:21:35 +00:00
ccd9e411d2
This is similar to the code we already have in JS tests, but instead of printing to the console where you have to copy-paste from, it just overwrites the files. Also, update all of the expected results by this method. Changes in the expected outputs: * In JSON files, the "warnings" are now always in the same place regardless of the type of the warning. * In all HTML files, self-closing tags now include the trailing slash, some characters are no longer encoded as entities when not necessary, and attributes may be single-quoted when that makes them shorter. * In Parsoid HTML files, the header is no longer terribly mangled. Other notes: * CommentParserTest.php: Change the output of serializeComments() to be in similar order as in JS, to reduce the diffs in this commit and because it's a better order for humans. * modifier.test.js: Remove some hacks that were working around small inconsistencies between the previous expected outputs and the actual outputs. Change-Id: I9f764640dae823321c0ac35898fa4db03f1ca364
531 lines
9.4 KiB
JSON
531 lines
9.4 KiB
JSON
[
|
|
{
|
|
"placeholderHeading": true,
|
|
"type": "heading",
|
|
"range": [
|
|
"0",
|
|
"0"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-21T22:51:00.000Z",
|
|
"author": "Johan (WMF)",
|
|
"range": [
|
|
"0/0/1/0/0",
|
|
"0/15/9/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/15/6",
|
|
"0/15/9/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Johan (WMF)|2020-04-21T22:51:00.000Z|0",
|
|
"warnings": [
|
|
"Comment starts and ends with different indentation"
|
|
],
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-28T17:47:00.000Z",
|
|
"author": "Dyolf77 (WMF)",
|
|
"range": [
|
|
"0/17/0",
|
|
"0/17/12/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/17/9",
|
|
"0/17/12/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Dyolf77 (WMF)|2020-04-28T17:47:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/21/0",
|
|
"0/21/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/25/0",
|
|
"0/25/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-29T14:08:00.000Z",
|
|
"author": "Dyolf77",
|
|
"range": [
|
|
"0/27/0",
|
|
"0/27/2/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/27/1",
|
|
"0/27/2/29"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Dyolf77|2020-04-29T14:08:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/29/0",
|
|
"0/29/1"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-29T17:40:00.000Z",
|
|
"author": "Trabelsiismail",
|
|
"range": [
|
|
"0/31/0",
|
|
"0/31/4/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/31/1",
|
|
"0/31/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Trabelsiismail|2020-04-29T17:40:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/33/0",
|
|
"0/33/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-29T22:55:00.000Z",
|
|
"author": "Nehaoua",
|
|
"range": [
|
|
"0/35/0",
|
|
"0/35/10/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/35/7",
|
|
"0/35/10/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Nehaoua|2020-04-29T22:55:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/37/0",
|
|
"0/37/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/41/0",
|
|
"0/41/1"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-30T11:58:00.000Z",
|
|
"author": "Aws Al-mimari",
|
|
"range": [
|
|
"0/43/0",
|
|
"0/43/4/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/43/1",
|
|
"0/43/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Aws Al-mimari|2020-04-30T11:58:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/45/0",
|
|
"0/45/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-30T14:00:00.000Z",
|
|
"author": "حسن سلمان الحسن",
|
|
"range": [
|
|
"0/47/0",
|
|
"0/47/4/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/47/1",
|
|
"0/47/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "حسن سلمان الحسن|2020-04-30T14:00:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/49/0",
|
|
"0/49/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/53/0",
|
|
"0/53/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/57/0",
|
|
"0/57/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-30T17:35:00.000Z",
|
|
"author": "Elsayed Taha",
|
|
"range": [
|
|
"0/59/0",
|
|
"0/59/4/30"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/59/1",
|
|
"0/59/4/30"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Elsayed Taha|2020-04-30T17:35:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/61/0",
|
|
"0/61/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-30T17:46:00.000Z",
|
|
"author": "أبو تائب",
|
|
"range": [
|
|
"0/63/0",
|
|
"0/63/3/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/63/1",
|
|
"0/63/3/29"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "أبو تائب|2020-04-30T17:46:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/65/0",
|
|
"0/65/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/69/0",
|
|
"0/69/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/73/0",
|
|
"0/73/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-04-30T23:49:00.000Z",
|
|
"author": "Saif Oofa7",
|
|
"range": [
|
|
"0/75/0",
|
|
"0/76/4/29"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/76/1",
|
|
"0/76/4/29"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Saif Oofa7|2020-04-30T23:49:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/78/0",
|
|
"0/78/1"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-05-01T12:00:00.000Z",
|
|
"author": "Mohanad Kh",
|
|
"range": [
|
|
"0/80/0",
|
|
"0/82/4/27"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/82/1",
|
|
"0/82/4/27"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Mohanad Kh|2020-05-01T12:00:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/84/0",
|
|
"0/84/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-05-01T21:30:00.000Z",
|
|
"author": "أبو هشام",
|
|
"range": [
|
|
"0/86/0",
|
|
"0/86/4/27"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/86/1",
|
|
"0/86/4/27"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "أبو هشام|2020-05-01T21:30:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/88/0",
|
|
"0/88/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/92/0",
|
|
"0/92/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-05-02T03:01:00.000Z",
|
|
"author": "محمد بوعلام عصامي",
|
|
"range": [
|
|
"0/94/0",
|
|
"0/94/10/28"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/94/7",
|
|
"0/94/10/28"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "محمد بوعلام عصامي|2020-05-02T03:01:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/96/0",
|
|
"0/96/1"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/100/0",
|
|
"0/100/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/104/0",
|
|
"0/104/2"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": []
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/108/0",
|
|
"0/108/1"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-05-04T17:56:00.000Z",
|
|
"author": "Justwiki",
|
|
"range": [
|
|
"0/110/0",
|
|
"0/110/4/28"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/110/1",
|
|
"0/110/4/28"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Justwiki|2020-05-04T17:56:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "heading",
|
|
"range": [
|
|
"0/112/0",
|
|
"0/112/1"
|
|
],
|
|
"level": 0,
|
|
"id": null,
|
|
"replies": [
|
|
{
|
|
"type": "comment",
|
|
"timestamp": "2020-05-05T09:36:00.000Z",
|
|
"author": "Abu aamir",
|
|
"range": [
|
|
"0/114/0",
|
|
"0/114/8/28"
|
|
],
|
|
"signatureRanges": [
|
|
[
|
|
"0/114/5",
|
|
"0/114/8/28"
|
|
]
|
|
],
|
|
"level": 1,
|
|
"id": "Abu aamir|2020-05-05T09:36:00.000Z|0",
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|