mediawiki-extensions-Discus.../tests/cases
Bartosz Dziewoński 109a50cb34 Truncate timestamps in comment IDs / names
For comments posted on or after 2022-07-12 (configurable), use a
shorter format, identical to the timestamps MediaWiki uses in URLs.

Changing the format for already existing comments would involve
difficult migrations, therefore we elect not to do it.

Bug: T304595
Change-Id: I387051a6a3a1d84cfae45c3e1516db870cc8b977
2022-06-24 00:49:58 +02:00
..
ar-nbsp-timezone-oldparser tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
ar-nbsp-timezone-parsoid tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
ar-no-paragraph-oldparser Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
ar-no-paragraph-parsoid tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
ckb-big-oldparser Merge "Use Sanitizer::stripAllTags() when generating notification snippets" 2022-03-28 22:42:39 +00:00
ckb-big-parsoid Merge "Use Sanitizer::stripAllTags() when generating notification snippets" 2022-03-28 22:42:39 +00:00
double-signature1 Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
double-signature2 Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
dt-tags-oldparser tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
dt-tags-parsoid tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
en-big-oldparser Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
en-big-parsoid Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
en-bigafd-parsoid Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
EventDispatcher Enhance Echo user talk edit and mention notifications 2021-09-20 15:05:42 +02:00
fake-headings Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
fallback-encoding-link tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
for-parser-cache Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
fr-unsigned-oldparser Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
fr-unsigned-parsoid Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
it-unsigned-oldparser Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
it-unsigned-parsoid Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
linearWalk Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00
lrm-signature tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
mixed-indentation Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
parsoid-sections Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
pl-big-oldparser Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
pl-big-parsoid Merge "Use Sanitizer::stripAllTags() when generating notification snippets" 2022-03-28 22:42:39 +00:00
reflist-oldparser tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
reflist-parsoid tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
selflink-signature Fix parsing of non-English titles in tests 2022-03-18 18:24:07 +00:00
signatures-comments Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
signatures-funny Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
single-comment-heading Don't allow the root node to be treated like a comment frame 2022-03-10 17:45:08 +00:00
single-comment-no-heading Don't allow the root node to be treated like a comment frame 2022-03-10 17:45:08 +00:00
span-about-group Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
split-list Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
split-list2 Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
sr-ec tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
sr-el tests: Fix root node / container handling 2022-03-10 18:43:58 +01:00
timestamp-format-switch Truncate timestamps in comment IDs / names 2022-06-24 00:49:58 +02: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 Move placeholder heading level (99) to a constant 2022-06-14 22:51:49 +01:00
transclusions5 Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01:00
unclosed-font Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
wrappers Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
wrappers2-oldparser Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
wrappers2-parsoid Limit where whitespaceParsoidHack() is used 2022-01-29 22:42:46 +00:00
appendSignature.json Trim signatures when added in an empty existing node, too 2021-03-08 23:38:46 +00:00
authors.json Highlight all comments since the oldest in a thread bundle 2022-02-28 21:58:10 +00:00
comments.json Truncate timestamps in comment IDs / names 2022-06-24 00:49:58 +02:00
datatest-ckb.json Move signatureScanLimit to a constant in JS 2022-02-21 22:42:14 +01:00
datatest-en.json Move signatureScanLimit to a constant in JS 2022-02-21 22:42:14 +01:00
datatest-sr.json Move signatureScanLimit to a constant in JS 2022-02-21 22:42:14 +01:00
datatest-th.json Move signatureScanLimit to a constant in JS 2022-02-21 22:42:14 +01:00
formattedreply.json Truncate timestamps in comment IDs / names 2022-06-24 00:49:58 +02: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
isSingleCommentSignedBy.json CommentUtils: Fix isSingleCommentSignedBy() with empty heading 2022-03-22 00:12:42 +01:00
linearWalk.json Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00
modified.json Don't allow the root node to be treated like a comment frame 2022-03-10 17:45:08 +00:00
README.txt Add test case for fake headings using wikitext ; 2022-02-12 00:35:02 +01:00
reply.json Tests: Add original titles to test cases 2022-01-12 22:16:03 +01:00
sanitize-wikitext-linebreaks.json Move wikitext modifiers to modifier.js 2020-07-01 17:06:02 +01:00
threaditemshtml.json Add test coverage for ApiDiscussionToolsPageInfo::getThreadItemsHtml 2022-06-06 18:40:30 +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 Ignore LRM and RLM in more places in the timestamp 2022-05-17 02:00:22 +02:00
transcluded.json Add another test case for transclusions overlapping comments 2022-01-17 23:52:02 +01: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.

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

fake-headings:
https://pl.wikipedia.org/w/index.php?title=Wikipedia:Propozycje_do_Artyku%C5%82%C3%B3w_na_Medal/Aposto%C5%82_Pawie%C5%82&action=render

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