aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2021-08-12 16:45:04 +0200
committerDaimona Eaytoy <daimona.wiki@gmail.com>2021-08-12 18:08:57 +0200
commit38e40047e046cd7890f21e97fd337958b0aafa96 (patch)
tree3e24b374c5722bf4faa04cba040394c9435b8409 /tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
parent8d5ed3572dbd642ebd0788c6441e683d460b2da4 (diff)
downloadmediawikicore-38e40047e046cd7890f21e97fd337958b0aafa96.tar.gz
mediawikicore-38e40047e046cd7890f21e97fd337958b0aafa96.zip
Apply side lock to diff headers and empty lines, too
Bug: T288676 Change-Id: Ia39df2647db3c1d010e0b84f161b369f71d7a728
Diffstat (limited to 'tests/phpunit/includes/diff/TextSlotDiffRendererTest.php')
-rw-r--r--tests/phpunit/includes/diff/TextSlotDiffRendererTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php b/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
index 918cf74a94f9..fb08b22a1233 100644
--- a/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
+++ b/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
@@ -114,7 +114,7 @@ class TextSlotDiffRendererTest extends MediaWikiIntegrationTestCase {
];
// Preserve markers when stripping tags
$diff = str_replace( '<td class="diff-marker"></td>', ' ', $diff );
- $diff = str_replace( '<td colspan="2"></td>', ' ', $diff );
+ $diff = preg_replace( '@<td colspan="2"( class="diff-[a-z]+")?></td>@', ' ', $diff );
$diff = preg_replace( '/data-marker="([^"]*)">/', '>$1', $diff );
return str_replace( array_keys( $replacements ), array_values( $replacements ),
trim( strip_tags( $diff ), "\n" ) );