mediawiki-extensions-Discus.../tests/phpunit
Bartosz Dziewoński 8f42c74985 Fix skipping to the end of paragraph, now it considers nested tags
Add yet another tree walking utility: CommentUtils::linearWalk().
Unlike TreeWalker, it allows handling the beginnings and ends of nodes
separately – kind of like parsing a XML token stream, or kind of like
VisualEditor's linear model.

(Add unit tests for this utility. The simple.html test case is copied
from [VisualEditor/VisualEditor]/demos/ve/pages/simple.html.)

Use this utility to stop skipping when we reach either a closing or
opening block node tag. Previously we'd skip over such tags inside
nested "transparent" nodes (like <a>, <del>, or apparently <font>).

Bug: T271385
Change-Id: I201a942eb3a56335e84d94e150ec2c33f8b4f4e0
2021-01-18 18:20:20 +00:00
..
CommentFormatterTest.php Load site config data in CommentFormatter tests 2021-01-08 23:03:33 +00:00
CommentModifierTest.php Better way to update expected test outputs 2020-10-19 23:53:30 +02:00
CommentParserTest.php Move warnings stuff from CommentItem to ThreadItem 2020-11-02 20:07:23 +00:00
CommentTestCase.php Load site config data in CommentFormatter tests 2021-01-08 23:03:33 +00:00
CommentUtilsTest.php Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00
DataTest.php Better way to update expected test outputs 2020-10-19 23:53:30 +02:00
MockCommentFormatter.php Load site config data in CommentFormatter tests 2021-01-08 23:03:33 +00:00
ThreadItemTest.php CommentItem/HeadingItem: Make more constructor args required 2021-01-08 20:45:29 +00:00