Skip to content

Commit 17b19a6

Browse files
committed
Add clearing text test
1 parent 28d6b7f commit 17b19a6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/phpunit/tests/html-api/wpHtmlProcessorModifiableText.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ public static function data_modifiable_text_special_leading_whitespace() {
181181
"\r\nCR-N",
182182
"<{$tag_name}>\n\nCR-N<!--x--></{$tag_name}>",
183183
);
184+
185+
yield "{$tag_label} clear text" => array(
186+
"<{$tag_name}>REPLACEME<!--x--></{$tag_name}>",
187+
1,
188+
'REPLACEME',
189+
'',
190+
"<{$tag_name}><!--x--></{$tag_name}>",
191+
);
184192
}
185193
}
186194
}

0 commit comments

Comments
 (0)