mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Add test case for unwrapParsoidSections()
Covers the bug fixed in I9133d4365a71d6db1fa58b69ae3b970166d15c1e. Depends-On: I9133d4365a71d6db1fa58b69ae3b970166d15c1e Bug: T252238 Change-Id: I92831696864e04384eb514ab69f14563cceafc19
This commit is contained in:
parent
607440498e
commit
e12aea2f77
|
@ -184,6 +184,7 @@
|
|||
"cases/no-heading/no-heading.json",
|
||||
"cases/lrm-signature/lrm-signature.json",
|
||||
"cases/fallback-encoding-link/fallback-encoding-link.json",
|
||||
"cases/parsoid-sections/parsoid-sections-transcludedFrom.json",
|
||||
"qunit/modifier.test.js",
|
||||
"qunit/controller.test.js",
|
||||
"qunit/parser.test.js"
|
||||
|
@ -211,6 +212,7 @@
|
|||
"cases/no-heading/no-heading.html",
|
||||
"cases/lrm-signature/lrm-signature.html",
|
||||
"cases/fallback-encoding-link/fallback-encoding-link.html",
|
||||
"cases/parsoid-sections/parsoid-sections.html",
|
||||
"cases/split-list/split-list.html",
|
||||
"cases/split-list/split-list-modified.html",
|
||||
"cases/split-list2/split-list2.html",
|
||||
|
|
|
@ -0,0 +1,162 @@
|
|||
{
|
||||
"Ischa1|2013-07-30T10:07:00.000Z|0": true,
|
||||
"Romaine|2013-07-30T13:44:00.000Z|0": true,
|
||||
"Sir Iain|2013-12-03T15:19:00.000Z|0": true,
|
||||
"Sir Iain|2014-01-05T17:40:00.000Z|0": true,
|
||||
"Romaine|2014-01-05T17:47:00.000Z|0": true,
|
||||
"Sir Iain|2014-01-05T17:52:00.000Z|0": true,
|
||||
"Sir Iain|2014-03-28T14:48:00.000Z|0": true,
|
||||
"Sir Iain|2014-07-13T12:18:00.000Z|0": true,
|
||||
"Magalhães|2014-05-31T07:37:00.000Z|0": true,
|
||||
"FredTC|2015-12-25T02:57:00.000Z|0": true,
|
||||
"FredTC|2016-02-01T02:30:00.000Z|0": true,
|
||||
"FredTC|2016-03-04T14:49:00.000Z|0": true,
|
||||
"Bdijkstra|2016-04-04T10:18:00.000Z|0": true,
|
||||
"Mileau|2018-12-23T08:28:00.000Z|0": true,
|
||||
"Mileau|2018-12-23T08:40:00.000Z|0": true,
|
||||
"Romaine|2018-12-25T14:40:00.000Z|0": true,
|
||||
"Mileau|2018-12-25T16:08:00.000Z|0": true,
|
||||
"Mileau|2019-05-09T12:06:00.000Z|0": true,
|
||||
"Bdijkstra|2019-05-09T12:28:00.000Z|0": true,
|
||||
"Mileau|2019-05-09T13:10:00.000Z|0": true,
|
||||
"Akoopal|2020-01-02T21:47:00.000Z|0": false,
|
||||
"Maartenschrijft|2020-01-04T07:47:00.000Z|0": false,
|
||||
"Romaine|2020-01-04T20:30:00.000Z|0": false,
|
||||
"Maartenschrijft|2020-01-04T21:18:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-01-06T16:30:00.000Z|0": false,
|
||||
"Romaine|2020-01-11T16:24:00.000Z|0": false,
|
||||
"K.vliet|2020-01-12T10:34:00.000Z|0": false,
|
||||
"Ronn|2020-01-12T11:05:00.000Z|0": false,
|
||||
"KlaasZ4usV|2020-01-12T15:05:00.000Z|0": false,
|
||||
"Dqfn13|2020-01-12T18:52:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-01-13T15:44:00.000Z|0": false,
|
||||
"MediaWiki message delivery|2020-01-13T18:40:00.000Z|0": false,
|
||||
"Bibnieuws|2020-01-20T13:30:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-01-20T16:21:00.000Z|0": false,
|
||||
"Sparrow (麻雀)|2020-01-26T13:19:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-01-27T16:03:00.000Z|0": false,
|
||||
"Germien Cox|2020-01-30T09:07:00.000Z|0": false,
|
||||
"Pajot - De Wolf|2020-01-30T19:15:00.000Z|0": false,
|
||||
"Edoderoo|2020-01-30T19:53:00.000Z|0": false,
|
||||
"TheBartgry|2020-02-02T16:20:00.000Z|0": false,
|
||||
"Romaine|2020-02-02T16:26:00.000Z|0": false,
|
||||
"TheBartgry|2020-02-02T16:52:00.000Z|0": false,
|
||||
"Romaine|2020-02-02T17:04:00.000Z|0": false,
|
||||
"Romaine|2020-02-03T07:26:00.000Z|0": false,
|
||||
"Eric.LEWIN|2020-02-03T14:22:00.000Z|0": false,
|
||||
"Romaine|2020-02-04T12:24:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-02-03T16:00:00.000Z|0": false,
|
||||
"Whatamidoing (WMF)|2020-02-04T19:24:00.000Z|0": false,
|
||||
"Romaine|2020-02-04T19:26:00.000Z|0": false,
|
||||
"Peter b|2020-02-05T10:48:00.000Z|0": false,
|
||||
"Romaine|2020-02-05T12:16:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-02-10T16:25:00.000Z|0": false,
|
||||
"Romaine|2020-02-10T19:29:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-02-17T16:17:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-02-24T16:30:00.000Z|0": false,
|
||||
"Germien Cox|2020-02-27T09:32:00.000Z|0": false,
|
||||
"Michiel043|2020-02-28T04:06:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-03-02T16:29:00.000Z|0": false,
|
||||
"Romaine|2020-03-03T22:06:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-03-09T16:35:00.000Z|0": false,
|
||||
"Romaine|2020-03-10T02:02:00.000Z|0": false,
|
||||
"Eugene233|2020-03-11T15:01:00.000Z|0": false,
|
||||
"Kleon3|2020-03-11T17:47:00.000Z|0": false,
|
||||
"Romaine|2020-03-22T15:14:00.000Z|0": false,
|
||||
"Whaledad|2020-03-13T19:17:00.000Z|0": false,
|
||||
"Romaine|2020-03-22T14:52:00.000Z|0": false,
|
||||
"Joopwiki|2020-03-22T16:02:00.000Z|0": false,
|
||||
"Bdijkstra|2020-03-22T16:06:00.000Z|0": false,
|
||||
"Joopwiki|2020-03-22T17:16:00.000Z|0": false,
|
||||
"Bdijkstra|2020-03-22T20:31:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-03-16T16:57:00.000Z|0": false,
|
||||
"Ojjm|2020-03-20T14:51:00.000Z|0": false,
|
||||
"Romaine|2020-03-22T14:47:00.000Z|0": false,
|
||||
"TheDragonhunter|2020-03-22T13:42:00.000Z|0": false,
|
||||
"Romaine|2020-03-22T14:45:00.000Z|0": false,
|
||||
"Germien Cox|2020-03-23T10:28:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-03-23T16:24:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-03-30T15:23:00.000Z|0": false,
|
||||
"Romaine|2020-03-30T15:30:00.000Z|0": false,
|
||||
"Germien Cox|2020-04-06T13:46:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-04-06T15:30:00.000Z|0": false,
|
||||
"Robotje|2020-04-08T13:57:00.000Z|0": false,
|
||||
"Romaine|2020-04-09T06:22:00.000Z|0": false,
|
||||
"Romaine|2020-04-09T08:24:00.000Z|0": false,
|
||||
"Norbert zeescouts|2020-04-13T21:48:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-14T08:06:00.000Z|0": false,
|
||||
"Romaine|2020-04-14T08:10:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-14T08:36:00.000Z|0": false,
|
||||
"Romaine|2020-04-14T08:40:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-14T08:53:00.000Z|0": false,
|
||||
"Romaine|2020-04-14T10:57:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-14T10:16:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-04-14T13:23:00.000Z|0": false,
|
||||
"VanBuren|2020-04-16T15:28:00.000Z|0": false,
|
||||
"Edoderoo|2020-04-16T15:42:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-16T17:03:00.000Z|0": false,
|
||||
"Edoderoo|2020-04-16T18:26:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-16T18:59:00.000Z|0": false,
|
||||
"Martix|2020-04-17T07:50:00.000Z|0": false,
|
||||
"Edoderoo|2020-04-17T07:52:00.000Z|0": false,
|
||||
"Romaine|2020-04-20T09:28:00.000Z|0": false,
|
||||
"Edoderoo|2020-04-20T09:09:00.000Z|0": false,
|
||||
"Romaine|2020-04-20T09:16:00.000Z|0": false,
|
||||
"Ymnes|2020-04-20T14:45:00.000Z|0": false,
|
||||
"Edoderoo|2020-04-20T14:55:00.000Z|0": false,
|
||||
"Romaine|2020-04-20T15:13:00.000Z|0": false,
|
||||
"Ymnes|2020-04-20T15:25:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-04-20T15:14:00.000Z|0": false,
|
||||
"Ymnes|2020-04-21T15:44:00.000Z|0": false,
|
||||
"Den Hieperboree|2020-04-21T15:51:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-21T16:15:00.000Z|0": false,
|
||||
"Ymnes|2020-04-21T17:08:00.000Z|0": false,
|
||||
"BKannen|2020-04-21T20:42:00.000Z|0": false,
|
||||
"RonnieV|2020-04-21T22:32:00.000Z|0": false,
|
||||
"RonnieV|2020-04-21T23:01:00.000Z|0": false,
|
||||
"The Banner|2020-04-22T08:50:00.000Z|0": false,
|
||||
"BKannen|2020-04-22T11:18:00.000Z|0": false,
|
||||
"Bdijkstra|2020-04-22T11:33:00.000Z|0": false,
|
||||
"Romaine|2020-04-22T13:14:00.000Z|0": false,
|
||||
"BKannen|2020-04-22T15:01:00.000Z|0": false,
|
||||
"Romaine|2020-04-22T15:17:00.000Z|0": false,
|
||||
"MatthijsWiki|2020-04-23T06:23:00.000Z|0": false,
|
||||
"Romaine|2020-04-23T06:30:00.000Z|0": false,
|
||||
"MatthijsWiki|2020-04-23T06:35:00.000Z|0": false,
|
||||
"Denkhenk|2020-04-25T14:55:00.000Z|0": false,
|
||||
"Romaine|2020-04-26T00:12:00.000Z|0": false,
|
||||
"Denkhenk|2020-04-26T05:02:00.000Z|0": false,
|
||||
"Romaine|2020-04-26T05:09:00.000Z|0": false,
|
||||
"Denkhenk|2020-04-26T05:12:00.000Z|0": false,
|
||||
"HKast|2020-04-25T19:59:00.000Z|0": false,
|
||||
"Romaine|2020-04-26T00:38:00.000Z|0": false,
|
||||
"Romaine|2020-04-26T00:45:00.000Z|0": false,
|
||||
"Mbch331|2020-04-26T06:33:00.000Z|0": false,
|
||||
"Tvx1|2020-04-26T12:31:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-04-27T15:28:00.000Z|0": false,
|
||||
"Germien Cox|2020-04-28T16:12:00.000Z|0": false,
|
||||
"Hobbema|2020-05-03T18:15:00.000Z|0": false,
|
||||
"Edoderoo|2020-05-03T18:17:00.000Z|0": false,
|
||||
"Hobbema|2020-05-03T18:33:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-05-04T15:33:00.000Z|0": false,
|
||||
"Romaine|2020-05-05T10:45:00.000Z|0": false,
|
||||
"Robotje|2020-05-08T12:39:00.000Z|0": false,
|
||||
"Edoderoo|2020-05-08T13:37:00.000Z|0": false,
|
||||
"Robotje|2020-05-08T13:54:00.000Z|0": false,
|
||||
"Edoderoo|2020-05-08T14:00:00.000Z|0": false,
|
||||
"Romaine|2020-05-08T14:39:00.000Z|0": false,
|
||||
"Ad Huikeshoven|2020-05-08T15:01:00.000Z|0": false,
|
||||
"Romaine|2020-05-08T15:03:00.000Z|0": false,
|
||||
"Ad Huikeshoven|2020-05-08T15:06:00.000Z|0": false,
|
||||
"Romaine|2020-05-08T15:17:00.000Z|0": false,
|
||||
"Lea Lacroix (WMDE)|2020-05-11T15:26:00.000Z|0": false,
|
||||
"Romaine|2020-05-11T15:49:00.000Z|0": false,
|
||||
"Karmakolle|2020-05-11T19:13:00.000Z|0": false,
|
||||
"Romaine|2020-05-11T20:08:00.000Z|0": false,
|
||||
"Karmakolle|2020-05-11T21:10:00.000Z|0": false,
|
||||
"Hansmuller|2020-05-12T08:08:00.000Z|0": false,
|
||||
"Edoderoo|2020-05-12T08:18:00.000Z|0": false,
|
||||
"Hansmuller|2020-05-13T08:13:00.000Z|0": false,
|
||||
"Hansmuller|2020-05-13T08:19:00.000Z|0": false,
|
||||
"Mohammed Sadat (WMDE)|2020-05-18T15:30:00.000Z|0": false
|
||||
}
|
3480
tests/cases/parsoid-sections/parsoid-sections.html
Normal file
3480
tests/cases/parsoid-sections/parsoid-sections.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -19,5 +19,12 @@
|
|||
"expected": "../cases/en-bigafd-parsoid/en-bigafd-parsoid-transcludedFrom.json",
|
||||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "parsoid-sections",
|
||||
"dom": "cases/parsoid-sections/parsoid-sections.html",
|
||||
"expected": "../cases/parsoid-sections/parsoid-sections-transcludedFrom.json",
|
||||
"config": "../data/nlwiki-config.json",
|
||||
"data": "../data/nlwiki-data.json"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -253,6 +253,7 @@ class CommentParserTest extends CommentTestCase {
|
|||
* @dataProvider provideTranscludedFrom
|
||||
* @covers ::getComments
|
||||
* @covers ::groupThreads
|
||||
* @covers \MediaWiki\Extension\DiscussionTools\CommentUtils::unwrapParsoidSections
|
||||
*/
|
||||
public function testGetTranscludedFrom(
|
||||
string $name, string $dom, string $expected, string $config, string $data
|
||||
|
|
Loading…
Reference in a new issue