Skip to content

Commit 09c0076

Browse files
committed
Add more PRE tests
1 parent e16e7eb commit 09c0076

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/phpunit/tests/html-api/wpHtmlProcessor-serialize.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,14 @@ public static function data_provider_normalize_special_leading_newline_cases() {
346346
"<pre>\n\nline 2\nline 3</pre>",
347347
"<pre>\n\nline 2\nline 3</pre>",
348348
),
349+
'Multiple text nodes inside PRE' => array(
350+
"<pre>\nline 1<!--comment--> still line 1</pre>",
351+
"<pre>line 1<!--comment--> still line 1</pre>",
352+
),
353+
'Multiple text nodes inside PRE with leading newlines' => array(
354+
"<pre>\n\nline 2<!--comment--> still line 2</pre>",
355+
"<pre>\n\nline 2<!--comment--> still line 2</pre>",
356+
),
349357
'Leading newline in TEXTAREA' => array(
350358
"<textarea>\nline 1\nline 2</textarea>",
351359
"<textarea>line 1\nline 2</textarea>",

0 commit comments

Comments
 (0)