mediawiki-extensions-Discus.../tests/cases
Bartosz Dziewoński 110a59200f One more tweak for comparing comment ranges to transclusion/DOM ranges
When we encounter a node that doesn't represent comment contents, e.g.:
* a [reply] link we inserted (T297034#7641334)
* an {{outdent}} template (see changed test case)

…we should ignore it together with its descendants (like in
Parser#nextInterestingLeafNode), instead of processing descendants
and possibly detecting comment contents in them.

Follow-up to 8de940b587,
72b9c2c6f5.

Bug: T297034
Change-Id: Ib2fa40c5fa389572b0e88ef558728fa06e3621b0
2022-01-24 17:42:18 +00:00
..
ar-nbsp-timezone-oldparser Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
ar-nbsp-timezone-parsoid Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
ar-no-paragraph-oldparser Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
ar-no-paragraph-parsoid Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
ckb-big-oldparser Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
ckb-big-parsoid Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
double-signature1 Only show [subscribe] links on sections that contain at least one comment 2021-07-13 02:35:15 +02:00
double-signature2 Use placeholder localisation messages in CommentFormatter tests 2021-06-02 21:46:36 +02:00
dt-tags-oldparser Fix adding comments in lists containing <dt> tags 2021-04-21 16:00:07 +02:00
dt-tags-parsoid Fix adding comments in lists containing <dt> tags 2021-04-21 16:00:07 +02:00
en-big-oldparser Add tests for bullet indentation 2022-01-14 00:27:04 +00:00
en-big-parsoid One more tweak for comparing comment ranges to transclusion/DOM ranges 2022-01-24 17:42:18 +00:00
en-bigafd-parsoid Improve detecting transcluded comments again 2022-01-11 16:07:44 +00:00
EventDispatcher Enhance Echo user talk edit and mention notifications 2021-09-20 15:05:42 +02:00
fallback-encoding-link Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
for-parser-cache Fix inserting comment start markers when they're outside of any wrappers 2022-01-11 16:07:37 +00:00
fr-unsigned-oldparser Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
fr-unsigned-parsoid Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
it-unsigned-oldparser Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
it-unsigned-parsoid Improve detecting transcluded comments again 2022-01-11 16:07:44 +00:00
linearWalk
lrm-signature Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
mixed-indentation Make IDs (to be used as URL hashes) wikitext safe 2021-03-18 20:45:21 +01:00
no-heading Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
parsoid-sections Make IDs (to be used as URL hashes) wikitext safe 2021-03-18 20:45:21 +01:00
pl-big-oldparser Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
pl-big-parsoid Change CommentParser and ImmutableRange to use offsets in codepoints instead of bytes 2021-09-27 19:04:16 +00:00
selflink-signature Handle selflinks by returning the current page's title 2022-01-12 21:18:04 +00:00
signatures-comments Make IDs (to be used as URL hashes) wikitext safe 2021-03-18 20:45:21 +01:00
signatures-funny Use placeholder localisation messages in CommentFormatter tests 2021-06-02 21:46:36 +02:00
span-about-group Avoid splitting about-groups starting with an empty <span> 2021-11-15 16:03:38 +00:00
split-list Make IDs (to be used as URL hashes) wikitext safe 2021-03-18 20:45:21 +01:00
split-list2 Make IDs (to be used as URL hashes) wikitext safe 2021-03-18 20:45:21 +01:00
sr-ec Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
sr-el Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
transclusions Make IDs (to be used as URL hashes) wikitext safe 2021-03-18 20:45:21 +01:00
transclusions2 Improve detecting transcluded comments again 2022-01-11 16:07:44 +00:00
transclusions3 Improve detecting transcluded comments again 2022-01-11 16:07:44 +00:00
transclusions4 Improve detecting transcluded comments again 2022-01-11 16:07:44 +00:00
transclusions5 Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01:00
unclosed-font Only show [subscribe] links on sections that contain at least one comment 2021-07-13 02:35:15 +02:00
wrappers Fix inserting comment start markers when they're outside of any wrappers 2022-01-11 16:07:37 +00:00
wrappers2-oldparser Ignore some invisible nodes when looking for comment frames 2022-01-11 17:01:53 +00:00
wrappers2-parsoid Ignore some invisible nodes when looking for comment frames 2022-01-11 17:01:53 +00:00
appendSignature.json Trim signatures when added in an empty existing node, too 2021-03-08 23:38:46 +00:00
authors.json
comments.json Handle selflinks by returning the current page's title 2022-01-12 21:18:04 +00:00
datatest-ckb.json Recognize links to add a new topic that use Special:NewSection 2021-07-22 22:25:11 +02:00
datatest-en.json Recognize links to add a new topic that use Special:NewSection 2021-07-22 22:25:11 +02:00
datatest-sr.json Recognize links to add a new topic that use Special:NewSection 2021-07-22 22:25:11 +02:00
datatest-th.json Recognize links to add a new topic that use Special:NewSection 2021-07-22 22:25:11 +02:00
formattedreply.json Tests: Add original titles to test cases 2022-01-12 22:16:03 +01:00
getHTML.json Tests: Add original titles to test cases 2022-01-12 22:16:03 +01:00
getText.json Tests: Add original titles to test cases 2022-01-12 22:16:03 +01:00
isHtmlSigned.json
isWikitextSigned.json
linearWalk.json
modified.json Add tests for bullet indentation 2022-01-14 00:27:04 +00:00
README.txt Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01:00
reply.json Tests: Add original titles to test cases 2022-01-12 22:16:03 +01:00
sanitize-wikitext-linebreaks.json
timestamp-parser-dst.json
timestamp-parser.json
timestamp-regex.json
transcluded.json Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01:00
unwrap.json

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.

To update the expected outputs, run the PHP tests with the environment variable
"DISCUSSIONTOOLS_OVERWRITE_TESTS" set to any value, e.g.:

     DISCUSSIONTOOLS_OVERWRITE_TESTS=1 php tests/phpunit/phpunit.php extensions/DiscussionTools/tests/phpunit/


The input 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

ckb-big:
https://ckb.wikipedia.org/w/index.php?title=ویکیپیدیا:دیوەخان_(پێشنیارەکان)&oldid=638545&action=render
https://ckb.wikipedia.org/api/rest_v1/page/html/ویکیپیدیا%3Aدیوەخان_(پێشنیارەکان)/638545

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

it-unsigned:
https://it.wikipedia.org/w/index.php?title=Aiuto:Sportello_informazioni&oldid=116856029&action=render
https://it.wikipedia.org/api/rest_v1/page/html/Aiuto%3ASportello_informazioni/116856029

sr-ec:
https://sr.wikipedia.org/w/index.php?title=Википедија:Трг/Архива/Техника/35&variant=sr-ec&action=render

sr-el:
https://sr.wikipedia.org/w/index.php?title=Википедија:Трг/Архива/Техника/35&variant=sr-el&action=render

unclosed-font:
https://nl.wikipedia.org/w/index.php?title=Overleg_gebruiker:RYasmeen_(WMF)&oldid=57970619&action=render

double-signature1:
https://en.wikipedia.org/w/index.php?title=Wikipedia:Requests_for_comment/User_names&oldid=1002108637&action=render

double-signature2:
https://en.wikipedia.org/w/index.php?title=Wikipedia:Articles_for_deletion/Equal_Education&oldid=1009060583&action=render

transclusions2:
https://en.wikipedia.beta.wmflabs.org/api/rest_v1/page/html/Talk%3AT289873/514467

transclusions3:
https://en.wikipedia.org/api/rest_v1/page/html/Wikipedia_talk%3ATemplate_documentation/1056728376

wrappers2:
https://en.wikipedia.org/w/index.php?title=User_talk:Dylsss&oldid=1058459889&action=render
https://en.wikipedia.org/api/rest_v1/page/html/User_talk%3ADylsss/1058459889

transclusions4:
https://it.wikipedia.org/api/rest_v1/page/html/Wikipedia%3AVandalismi_in_corso/124462482

transclusions5:
https://commons.wikimedia.org/api/rest_v1/page/html/Commons_talk%3ASPARQL_query_service

Text is available under the Creative Commons Attribution-ShareAlike License.
See these pages for attribution.