mediawiki-extensions-Discus.../tests/qunit/cases
Bartosz Dziewoński 606d6b34ec Add reply links at the end of a line, even if the signature is in the middle
Previously they were added at the end of the text node containing the
timestamp, which was usually the end of the line, but not always.

And also fix the same problem for inserting the actual replies (or
reply widgets). This replaces an undocumented hack that prevented our
own reply links from triggering this bug (without it, the reply widget
would be inserted before the reply link rather than after).

While we're here, remove unintentional spacing that appeared before
some reply links, caused by trailing whitespace in text nodes.

Add tests for all of the above.

Bug: T245695
Change-Id: I354b63e2446bb996176a2e3d76abf944127f307e
2020-03-02 21:39:37 +01:00
..
en-big-oldparser Add reply links at the end of a line, even if the signature is in the middle 2020-03-02 21:39:37 +01:00
en-big-parsoid Rearrange test cases 2020-02-25 00:19:30 +00:00
fallback-encoding-link Work around mw.Uri crash on fallback encoding in links 2020-02-29 19:08:01 +01:00
lrm-signature Ignore LRM and RLM before timezone indicator 2020-02-25 00:20:00 +00:00
no-heading Rearrange test cases 2020-02-25 00:19:30 +00:00
pl-big-oldparser Add reply links at the end of a line, even if the signature is in the middle 2020-03-02 21:39:37 +01:00
pl-big-parsoid Rearrange test cases 2020-02-25 00:19:30 +00:00
signatures-funny Add reply links at the end of a line, even if the signature is in the middle 2020-03-02 21:39:37 +01:00
split-list Rearrange test cases 2020-02-25 00:19:30 +00:00
split-list2 Rearrange test cases 2020-02-25 00:19:30 +00:00
README.txt Rearrange test cases 2020-02-25 00:19:30 +00:00

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

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