aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/diff/TextDiffer/ManifoldTextDifferTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Namespace includes/contextJames D. Forrester2024-02-081-0/+1
| | | | | Bug: T353458 Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
* Merge "Add support for wikidiff2_multi_format_diff()"jenkins-bot2023-07-311-1/+2
|\
| * Add support for wikidiff2_multi_format_diff()Tim Starling2023-07-191-1/+2
| | | | | | | | | | Bug: T341754 Change-Id: I17396985d0b26516a06df17e9bd1343054521e01
* | tests: Skip ManifoldTextDifferTest on windowsUmherirrender2023-07-221-0/+6
|/ | | | | | | | Fails with a 1) ManifoldTextDifferTest::testHasFormatExternal ExternalDiffEngine config points to a non-executable Change-Id: Ifb32694f2c1cef32a354e20636463a22b7ab5f6f
* Add unified formatTim Starling2023-07-191-5/+8
| | | | | | The code is there, so we may as well expose it. Change-Id: Ic4cf5c0d4a5b46f0f0f25454815dcea1f69970eb
* Factor out TextDiffer hierarchy from TextSlotDiffRendererTim Starling2023-07-191-0/+122
* Follow the TODO comment in TextSlotDiffRenderer ::getTextDiffInternal() by moving the code out to three parallel implementations, namely ExternalTextDiffer, PhpTextDiffer and Wikidiff2TextDiffer. * Add a container/factory class ManifoldTextDiffer to glue them together and collate available formats. * Move the inline legend to Wikidiff2TextDiffer. Not the toggle since the ability to toggle depends on the available format, not the current format. * Update the diff cache keys so that ManifoldTextDiffer can store the engine=>format map it used to generate the diff. * Drop support for the second parameter to TextSlotDiffRenderer ::setEngine(), since nothing used it anymore. * Provide a format batch API, since some engines are able to efficiently generate multiple formats. This might be used by DifferenceEngine in future. Needs risky change notification for the cache key change. Bug: T339184 Depends-On: I8a35b9b8ec1622c9a36d2496bdd24f51bc52c85f Change-Id: I5c506e39162855aff53dd420dd8145156739059c