mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 09:58:17 +00:00
Merge "Tests covering fr.wp unsigned comment templates"
This commit is contained in:
commit
88703b8196
|
@ -156,6 +156,8 @@
|
|||
"data/arwiki-data.json",
|
||||
"data/enwiki-config.json",
|
||||
"data/enwiki-data.json",
|
||||
"data/frwiki-config.json",
|
||||
"data/frwiki-data.json",
|
||||
"data/huwiki-config.json",
|
||||
"data/huwiki-data.json",
|
||||
"data/nlwiki-config.json",
|
||||
|
@ -182,6 +184,9 @@
|
|||
"cases/ar-no-paragraph-parsoid/ar-no-paragraph-parsoid.json",
|
||||
"cases/ar-nbsp-timezone-oldparser/ar-nbsp-timezone-oldparser.json",
|
||||
"cases/ar-nbsp-timezone-parsoid/ar-nbsp-timezone-parsoid.json",
|
||||
"cases/fr-unsigned-oldparser/fr-unsigned-oldparser.json",
|
||||
"cases/fr-unsigned-parsoid/fr-unsigned-parsoid.json",
|
||||
"cases/fr-unsigned-parsoid/fr-unsigned-parsoid-transcludedFrom.json",
|
||||
"cases/no-heading/no-heading.json",
|
||||
"cases/lrm-signature/lrm-signature.json",
|
||||
"cases/fallback-encoding-link/fallback-encoding-link.json",
|
||||
|
@ -210,6 +215,9 @@
|
|||
"cases/ar-no-paragraph-parsoid/ar-no-paragraph-parsoid-modified.html",
|
||||
"cases/ar-nbsp-timezone-oldparser/ar-nbsp-timezone-oldparser.html",
|
||||
"cases/ar-nbsp-timezone-parsoid/ar-nbsp-timezone-parsoid.html",
|
||||
"cases/fr-unsigned-oldparser/fr-unsigned-oldparser.html",
|
||||
"cases/fr-unsigned-oldparser/fr-unsigned-oldparser-reply.html",
|
||||
"cases/fr-unsigned-parsoid/fr-unsigned-parsoid.html",
|
||||
"cases/no-heading/no-heading.html",
|
||||
"cases/lrm-signature/lrm-signature.html",
|
||||
"cases/fallback-encoding-link/fallback-encoding-link.html",
|
||||
|
|
|
@ -19,5 +19,9 @@ ar-nbsp-timezone:
|
|||
https://ar.wikipedia.org/wiki/ويكيبيديا:إخفاء_أرقام_الآي_بي?oldid=46583196&action=render
|
||||
https://ar.wikipedia.org/api/rest_v1/page/html/ويكيبيديا%3Aإخفاء_أرقام_الآي_بي/46583196
|
||||
|
||||
fr-unsigned:
|
||||
https://fr.wikipedia.org/w/index.php?title=Discussion:Le_Monde&oldid=170426593&action=render
|
||||
https://fr.wikipedia.org/api/rest_v1/page/html/Discussion%3ALe_Monde/170426593
|
||||
|
||||
Text is available under the Creative Commons Attribution-ShareAlike License.
|
||||
See these pages for attribution.
|
||||
|
|
|
@ -55,6 +55,20 @@
|
|||
"config": "../data/arwiki-config.json",
|
||||
"data": "../data/arwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "frwiki fr-unsigned oldparser",
|
||||
"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",
|
||||
"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": "No heading",
|
||||
"dom": "cases/no-heading/no-heading.html",
|
||||
|
|
File diff suppressed because one or more lines are too long
416
tests/cases/fr-unsigned-oldparser/fr-unsigned-oldparser.html
Normal file
416
tests/cases/fr-unsigned-oldparser/fr-unsigned-oldparser.html
Normal file
File diff suppressed because one or more lines are too long
1987
tests/cases/fr-unsigned-oldparser/fr-unsigned-oldparser.json
Normal file
1987
tests/cases/fr-unsigned-oldparser/fr-unsigned-oldparser.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"2A02:8109:8900:5C14:C953:3DDA:E3FB:3542|2017-10-09T12:39:00.000Z|0": "Modèle:Non signé",
|
||||
"Chicraz|2017-10-09T15:16:00.000Z|0": false,
|
||||
"2A02:8109:8900:5C14:C953:3DDA:E3FB:3542|2017-10-09T19:11:00.000Z|0": false,
|
||||
"Chicraz|2017-10-10T08:04:00.000Z|0": false,
|
||||
"20 century boy|2014-10-06T10:29:00.000Z|0": false,
|
||||
"Bokken|2009-04-24T07:27:00.000Z|0": false,
|
||||
"Apokrif|2006-08-04T17:49:00.000Z|0": false,
|
||||
"Mhon|2006-08-07T13:53:00.000Z|0": false,
|
||||
"Mhon|2006-08-14T10:03:00.000Z|0": false,
|
||||
"Digging.holes|2006-08-15T00:28:00.000Z|0": false,
|
||||
"Mhon|2006-08-15T11:24:00.000Z|0": false,
|
||||
"Spedona|2006-08-25T21:19:00.000Z|0": false,
|
||||
"Digging.holes|2006-08-25T22:39:00.000Z|0": false,
|
||||
"Spedona|2006-08-26T07:12:00.000Z|0": false,
|
||||
"Digging.holes|2006-08-26T17:28:00.000Z|0": false,
|
||||
"David.Monniaux|2007-02-01T09:43:00.000Z|0": false,
|
||||
"140.122.97.4|2008-01-07T06:27:00.000Z|0": false,
|
||||
"LPLT|2008-09-02T11:36:00.000Z|0": false,
|
||||
"Ahbon?|2008-09-03T10:45:00.000Z|0": false,
|
||||
"LPLT|2008-09-03T11:04:00.000Z|0": false,
|
||||
"Ahbon?|2008-09-03T16:32:00.000Z|0": false,
|
||||
"LPLT|2008-09-03T16:43:00.000Z|0": false,
|
||||
"Cchantep|2008-09-03T16:46:00.000Z|0": false,
|
||||
"LPLT|2009-03-22T18:08:00.000Z|0": false,
|
||||
"LPLT|2009-03-30T15:40:00.000Z|0": false,
|
||||
"LPLT|2009-04-02T07:55:00.000Z|0": false,
|
||||
"Bokken|2009-04-03T09:11:00.000Z|0": false,
|
||||
"Gegejv|2009-04-03T20:10:00.000Z|0": false,
|
||||
"Mogador|2009-04-04T12:14:00.000Z|0": false,
|
||||
"Pixeltoo|2009-04-22T11:05:00.000Z|0": false,
|
||||
"Arkanosis|2010-01-02T12:01:00.000Z|0": false,
|
||||
"Bokken|2010-01-02T13:18:00.000Z|0": false,
|
||||
"Alastair|2011-02-26T14:23:00.000Z|0": false,
|
||||
"Azoee|2011-02-28T09:33:00.000Z|0": false,
|
||||
"DocteurCosmos|2010-07-07T14:56:00.000Z|0": false,
|
||||
"LPLT|2010-07-07T14:58:00.000Z|0": false,
|
||||
"DocteurCosmos|2010-07-08T13:52:00.000Z|0": false,
|
||||
"LPLT|2010-07-08T14:11:00.000Z|0": false,
|
||||
"Polofrfr|2010-12-16T21:56:00.000Z|0": false,
|
||||
"Azoee|2011-04-07T18:56:00.000Z|0": false,
|
||||
"Bibliorock|2011-04-08T15:52:00.000Z|0": false,
|
||||
"Azoee|2011-04-09T09:46:00.000Z|0": false,
|
||||
"Jules78120|2012-03-11T09:51:00.000Z|0": false,
|
||||
"Pcouderc|2014-05-16T21:30:00.000Z|0": false,
|
||||
"LPLT|2013-03-03T21:02:00.000Z|0": false,
|
||||
"LPLT|2013-03-03T21:07:00.000Z|0": false,
|
||||
"Jules78120|2013-03-03T21:08:00.000Z|0": false,
|
||||
"Jmex|2013-03-04T06:32:00.000Z|0": false,
|
||||
"Azoee|2013-03-04T13:11:00.000Z|0": false,
|
||||
"LPLT|2013-03-04T16:38:00.000Z|0": false,
|
||||
"Quadrige|2013-03-27T23:28:00.000Z|0": false,
|
||||
"CaptainHaddock|2013-03-28T09:28:00.000Z|0": false,
|
||||
"Quadrige|2013-03-28T10:14:00.000Z|0": false,
|
||||
"Laurent Verset|2013-11-14T23:19:00.000Z|0": false,
|
||||
"Laurent Verset|2013-11-15T21:13:00.000Z|0": false,
|
||||
"Gyrostat|2013-11-15T20:19:00.000Z|0": false,
|
||||
"Gyrostat|2013-11-15T21:37:00.000Z|0": false,
|
||||
"Azoee|2014-10-13T10:11:00.000Z|0": false,
|
||||
"2A01:E35:8AE2:3E10:40F5:EB62:596A:89DB|2015-01-11T10:32:00.000Z|0": false,
|
||||
"Celette|2015-01-12T20:47:00.000Z|0": false,
|
||||
"Hégésippe Cormier|2014-09-25T06:08:00.000Z|0": false,
|
||||
"Notron|2014-10-01T23:05:00.000Z|0": false,
|
||||
"Azoee|2014-10-02T07:32:00.000Z|0": false,
|
||||
"Schlum|2016-03-31T09:06:00.000Z|0": false,
|
||||
"Krosian2B|2016-03-31T16:43:00.000Z|0": false,
|
||||
"Daxipedia|2016-03-31T21:24:00.000Z|0": false,
|
||||
"Apipo1907|2016-04-01T07:41:00.000Z|0": false,
|
||||
"Jmex|2016-04-04T15:30:00.000Z|0": false,
|
||||
"Nouill|2016-04-11T04:00:00.000Z|0": false,
|
||||
"L'amateur d'aéroplanes|2016-04-14T06:30:00.000Z|0": false,
|
||||
"Nouill|2016-04-17T06:58:00.000Z|0": false,
|
||||
"InternetArchiveBot|2018-03-20T23:32:00.000Z|0": false,
|
||||
"J'en passe et des meilleurs|2020-02-19T17:08:00.000Z|0": false,
|
||||
"Salsero35|2020-02-22T12:29:00.000Z|0": false,
|
||||
"Baldurar|2020-02-22T13:56:00.000Z|0": false,
|
||||
"J'en passe et des meilleurs|2020-02-24T08:26:00.000Z|0": false,
|
||||
"Apollofox|2020-03-05T21:30:00.000Z|0": false,
|
||||
"Marvoir|2020-05-01T13:09:00.000Z|0": false,
|
||||
"Salsero35|2020-05-01T14:18:00.000Z|0": false,
|
||||
"Marvoir|2020-05-01T15:27:00.000Z|0": false,
|
||||
"Marvoir|2020-05-01T17:50:00.000Z|0": false,
|
||||
"J'en passe et des meilleurs|2020-05-04T07:13:00.000Z|0": false,
|
||||
"Touam|2020-05-04T12:52:00.000Z|0": false,
|
||||
"J'en passe et des meilleurs|2020-05-04T12:56:00.000Z|0": false
|
||||
}
|
395
tests/cases/fr-unsigned-parsoid/fr-unsigned-parsoid.html
Normal file
395
tests/cases/fr-unsigned-parsoid/fr-unsigned-parsoid.html
Normal file
File diff suppressed because one or more lines are too long
1992
tests/cases/fr-unsigned-parsoid/fr-unsigned-parsoid.json
Normal file
1992
tests/cases/fr-unsigned-parsoid/fr-unsigned-parsoid.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -20,6 +20,13 @@
|
|||
"config": "../data/arwiki-config.json",
|
||||
"data": "../data/arwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "frwiki unsigned oldparser",
|
||||
"dom": "cases/fr-unsigned-oldparser/fr-unsigned-oldparser.html",
|
||||
"expected": "cases/fr-unsigned-oldparser/fr-unsigned-oldparser-reply.html",
|
||||
"config": "../data/frwiki-config.json",
|
||||
"data": "../data/frwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Signatures in funny places",
|
||||
"dom": "cases/signatures-funny/signatures-funny.html",
|
||||
|
|
|
@ -20,6 +20,13 @@
|
|||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "frwiki unsigned AFD",
|
||||
"dom": "cases/fr-unsigned-parsoid/fr-unsigned-parsoid.html",
|
||||
"expected": "../cases/fr-unsigned-parsoid/fr-unsigned-parsoid-transcludedFrom.json",
|
||||
"config": "../data/frwiki-config.json",
|
||||
"data": "../data/frwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "parsoid-sections",
|
||||
"dom": "cases/parsoid-sections/parsoid-sections.html",
|
||||
|
|
104
tests/data/frwiki-config.json
Normal file
104
tests/data/frwiki-config.json
Normal file
|
@ -0,0 +1,104 @@
|
|||
{
|
||||
"wgContentLang": "fr",
|
||||
"wgArticlePath": "/wiki/$1",
|
||||
"wgMetaNamespace": "Wikipédia",
|
||||
"wgMetaNamespaceTalk": "Discussion_Wikipédia",
|
||||
"wgNamespaceIds": {
|
||||
"média": -2,
|
||||
"spécial": -1,
|
||||
"": 0,
|
||||
"discussion": 1,
|
||||
"utilisateur": 2,
|
||||
"discussion_utilisateur": 3,
|
||||
"wikipédia": 4,
|
||||
"discussion_wikipédia": 5,
|
||||
"fichier": 6,
|
||||
"discussion_fichier": 7,
|
||||
"mediawiki": 8,
|
||||
"discussion_mediawiki": 9,
|
||||
"modèle": 10,
|
||||
"discussion_modèle": 11,
|
||||
"aide": 12,
|
||||
"discussion_aide": 13,
|
||||
"catégorie": 14,
|
||||
"discussion_catégorie": 15,
|
||||
"portail": 100,
|
||||
"discussion_portail": 101,
|
||||
"projet": 102,
|
||||
"discussion_projet": 103,
|
||||
"référence": 104,
|
||||
"discussion_référence": 105,
|
||||
"module": 828,
|
||||
"discussion_module": 829,
|
||||
"gadget": 2300,
|
||||
"discussion_gadget": 2301,
|
||||
"définition_de_gadget": 2302,
|
||||
"discussion_définition_de_gadget": 2303,
|
||||
"sujet": 2600,
|
||||
"discuter": 1,
|
||||
"discussion_image": 7,
|
||||
"utilisatrice": 2,
|
||||
"discussion_utilisatrice": 3,
|
||||
"wp": 4,
|
||||
"dw": 5,
|
||||
"discussion_wikipedia": 5,
|
||||
"wikipedia": 4,
|
||||
"wikipedia_talk": 5,
|
||||
"image": 6,
|
||||
"image_talk": 7,
|
||||
"media": -2,
|
||||
"special": -1,
|
||||
"talk": 1,
|
||||
"user": 2,
|
||||
"user_talk": 3,
|
||||
"project": 4,
|
||||
"project_talk": 5,
|
||||
"file": 6,
|
||||
"file_talk": 7,
|
||||
"mediawiki_talk": 9,
|
||||
"template": 10,
|
||||
"template_talk": 11,
|
||||
"help": 12,
|
||||
"help_talk": 13,
|
||||
"category": 14,
|
||||
"category_talk": 15,
|
||||
"gadget_talk": 2301,
|
||||
"gadget_definition": 2302,
|
||||
"gadget_definition_talk": 2303,
|
||||
"topic": 2600,
|
||||
"module_talk": 829
|
||||
},
|
||||
"wgFormattedNamespaces": {
|
||||
"0": "",
|
||||
"1": "Discussion",
|
||||
"2": "Utilisateur",
|
||||
"3": "Discussion utilisateur",
|
||||
"4": "Wikipédia",
|
||||
"5": "Discussion Wikipédia",
|
||||
"6": "Fichier",
|
||||
"7": "Discussion fichier",
|
||||
"8": "MediaWiki",
|
||||
"9": "Discussion MediaWiki",
|
||||
"10": "Modèle",
|
||||
"11": "Discussion modèle",
|
||||
"12": "Aide",
|
||||
"13": "Discussion aide",
|
||||
"14": "Catégorie",
|
||||
"15": "Discussion catégorie",
|
||||
"100": "Portail",
|
||||
"101": "Discussion Portail",
|
||||
"102": "Projet",
|
||||
"103": "Discussion Projet",
|
||||
"104": "Référence",
|
||||
"105": "Discussion Référence",
|
||||
"828": "Module",
|
||||
"829": "Discussion module",
|
||||
"2300": "Gadget",
|
||||
"2301": "Discussion gadget",
|
||||
"2302": "Définition de gadget",
|
||||
"2303": "Discussion définition de gadget",
|
||||
"2600": "Sujet",
|
||||
"-2": "Média",
|
||||
"-1": "Spécial"
|
||||
}
|
||||
}
|
67
tests/data/frwiki-data.json
Normal file
67
tests/data/frwiki-data.json
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"dateFormat": "j F Y à H:i",
|
||||
"digits": "0123456789",
|
||||
"localTimezone": "Europe/Paris",
|
||||
"specialContributionsName": "Contributions",
|
||||
"timezones": {
|
||||
"CEST": "CEST",
|
||||
"CET": "CET",
|
||||
"PMT": "PMT",
|
||||
"WEMT": "WEMT",
|
||||
"WEST": "WEST",
|
||||
"WET": "WET"
|
||||
},
|
||||
"contLangMessages": {
|
||||
"sunday": "dimanche",
|
||||
"monday": "lundi",
|
||||
"tuesday": "mardi",
|
||||
"wednesday": "mercredi",
|
||||
"thursday": "jeudi",
|
||||
"friday": "vendredi",
|
||||
"saturday": "samedi",
|
||||
"sun": "dim.",
|
||||
"mon": "lun.",
|
||||
"tue": "mar.",
|
||||
"wed": "mer.",
|
||||
"thu": "jeu.",
|
||||
"fri": "ven.",
|
||||
"sat": "sam.",
|
||||
"january": "janvier",
|
||||
"february": "février",
|
||||
"march": "mars",
|
||||
"april": "avril",
|
||||
"may_long": "mai",
|
||||
"june": "juin",
|
||||
"july": "juillet",
|
||||
"august": "août",
|
||||
"september": "septembre",
|
||||
"october": "octobre",
|
||||
"november": "novembre",
|
||||
"december": "décembre",
|
||||
"january-gen": "janvier",
|
||||
"february-gen": "février",
|
||||
"march-gen": "mars",
|
||||
"april-gen": "avril",
|
||||
"may-gen": "mai",
|
||||
"june-gen": "juin",
|
||||
"july-gen": "juillet",
|
||||
"august-gen": "août",
|
||||
"september-gen": "septembre",
|
||||
"october-gen": "octobre",
|
||||
"november-gen": "novembre",
|
||||
"december-gen": "décembre",
|
||||
"jan": "janv.",
|
||||
"feb": "fév.",
|
||||
"mar": "mars",
|
||||
"apr": "avr.",
|
||||
"may": "mai",
|
||||
"jun": "juin",
|
||||
"jul": "juill.",
|
||||
"aug": "août",
|
||||
"sep": "sept.",
|
||||
"oct": "oct.",
|
||||
"nov": "nov.",
|
||||
"dec": "déc."
|
||||
},
|
||||
"signatureScanLimit": 100
|
||||
}
|
Loading…
Reference in a new issue