File tree Expand file tree Collapse file tree
tests/phpunit/tests/html-api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -354,6 +354,22 @@ public static function data_provider_normalize_special_leading_newline_cases() {
354354 "<pre> \n\nline 2<!--comment--> still line 2</pre> " ,
355355 "<pre> \n\nline 2<!--comment--> still line 2</pre> " ,
356356 ),
357+ 'Leading newline in LISTING ' => array (
358+ "<listing> \nline 1 \nline 2</listing> " ,
359+ "<listing>line 1 \nline 2</listing> " ,
360+ ),
361+ 'Double leading newline in LISTING ' => array (
362+ "<listing> \n\nline 2 \nline 3</listing> " ,
363+ "<listing> \n\nline 2 \nline 3</listing> " ,
364+ ),
365+ 'Multiple text nodes inside LISTING ' => array (
366+ "<listing> \nline 1<!--comment--> still line 1</listing> " ,
367+ '<listing>line 1<!--comment--> still line 1</listing> ' ,
368+ ),
369+ 'Multiple text nodes inside LISTING with leading newlines ' => array (
370+ "<listing> \n\nline 2<!--comment--> still line 2</listing> " ,
371+ "<listing> \n\nline 2<!--comment--> still line 2</listing> " ,
372+ ),
357373 'Leading newline in TEXTAREA ' => array (
358374 "<textarea> \nline 1 \nline 2</textarea> " ,
359375 "<textarea>line 1 \nline 2</textarea> " ,
You can’t perform that action at this time.
0 commit comments