mediawiki-extensions-Discus.../tests/cases
Bartosz Dziewoński e36dc8e78a Skip to the end of the paragraph in the parser, not modifier
When a comment ended before the end of a paragraph, the next
comment would begin right there in the middle of the paragraph.
This could result in the detected indentation level of that
comment being incorrect, and replies being inserted in wrong
places, as seen in the 'signatures-funny' test case.

The code moved to the parser was previously repeated twice in
addListItem() and addReplyLink(), which should have been a hint
that something isn't quite right.

Also, fix the code guarding against overlapping signatures,
now that signatures may not be at the end of a comment.

Bug: T260855
Change-Id: Ic26a87642f8a15d5de2f7073d4d8176b299c7f94
2020-08-20 19:35:55 +00:00
..
ar-nbsp-timezone-oldparser Allow updating the expected results when running PHP tests 2020-08-04 03:05:28 +02:00
ar-nbsp-timezone-parsoid parser: Fix comment ranges when timestamp has entities 2020-08-11 20:41:06 +02:00
ar-no-paragraph-oldparser Always use ':' (<dl><dd>) for indentation of replies 2020-08-04 23:37:00 +02:00
ar-no-paragraph-parsoid Always use ':' (<dl><dd>) for indentation of replies 2020-08-04 23:37:00 +02:00
en-big-oldparser Skip to the end of the paragraph in the parser, not modifier 2020-08-20 19:35:55 +00:00
en-big-parsoid Skip to the end of the paragraph in the parser, not modifier 2020-08-20 19:35:55 +00:00
en-bigafd-parsoid Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
fallback-encoding-link Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
fr-unsigned-oldparser Allow updating the expected results when running PHP tests 2020-08-04 03:05:28 +02:00
fr-unsigned-parsoid Skip to the end of the paragraph in the parser, not modifier 2020-08-20 19:35:55 +00:00
lrm-signature Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
mixed-indentation Fix indentation level when replying to comments with mixed indentation 2020-08-06 01:25:33 +02:00
no-heading Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
parsoid-sections Add test case for unwrapParsoidSections() 2020-05-18 21:36:48 +00:00
pl-big-oldparser Fix indentation level when replying to comments with mixed indentation 2020-08-06 01:25:33 +02:00
pl-big-parsoid Fix indentation level when replying to comments with mixed indentation 2020-08-06 01:25:33 +02:00
signatures-comments Always use ':' (<dl><dd>) for indentation of replies 2020-08-04 23:37:00 +02:00
signatures-funny Skip to the end of the paragraph in the parser, not modifier 2020-08-20 19:35:55 +00:00
split-list Always use ':' (<dl><dd>) for indentation of replies 2020-08-04 23:37:00 +02:00
split-list2 Always use ':' (<dl><dd>) for indentation of replies 2020-08-04 23:37:00 +02:00
transclusions Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
wrappers Insert replies outside of decorative comment frames 2020-05-22 15:01:12 +01:00
authors.json Create ThreadItem classes 2020-06-12 20:35:59 +01:00
comments.json More test cases for multiple signatures in funny places 2020-08-11 20:41:32 +02:00
isHtmlSigned.json Improve detecting typed signatures 2020-07-22 00:00:53 +02:00
isWikitextSigned.json Improve detecting typed signatures 2020-07-22 00:00:53 +02:00
modified.json Add a test case for replies to top-level comments with mixed indentation 2020-07-30 01:46:45 +02:00
README.txt Tests covering fr.wp unsigned comment templates 2020-05-28 00:13:07 +02:00
reply.json Tests covering fr.wp unsigned comment templates 2020-05-28 00:13:07 +02:00
sanitize-wikitext-linebreaks.json Move wikitext modifiers to modifier.js 2020-07-01 17:06:02 +01:00
timestamp-parser-dst.json Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
timestamp-parser.json Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
timestamp-regex.json Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
transcluded.json Tests covering fr.wp unsigned comment templates 2020-05-28 00:13:07 +02:00
unwrap.json Allow non-lists to be passed to unwrapList 2020-06-24 19:19:06 +01:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The HTML files were saved from:

pl-big:
https://pl.wikipedia.org/w/index.php?action=render&title=Wikipedia:Kawiarenka/Artyku%C5%82y_dyskusja/Archiwum/2018-pa%C5%BAdziernik&oldid=55171451
https://pl.wikipedia.org/api/rest_v1/page/html/Wikipedia%3AKawiarenka%2FArtyku%C5%82y_dyskusja%2FArchiwum%2F2018-pa%C5%BAdziernik/55171451

en-big:
https://en.wikipedia.org/w/index.php?action=render&title=Wikipedia:Village_pump_(technical)/Archive_175&oldid=913983958
https://en.wikipedia.org/api/rest_v1/page/html/Wikipedia%3AVillage_pump_(technical)%2FArchive_175/913983958

en-bigafd:
https://en.wikipedia.org/api/rest_v1/page/html/Wikipedia%3AArticles_for_deletion%2FLog%2F2020_March_7

ar-no-paragraph:
https://ar.wikipedia.org/w/index.php?action=render&title=نقاش_المستخدم:Khaled&oldid=45576943
https://ar.wikipedia.org/api/rest_v1/page/html/نقاش_المستخدم%3AKhaled/45576943

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.