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 @@ -364,29 +364,4 @@ public static function data_provider_normalize_special_leading_newline_cases() {
364364 ),
365365 );
366366 }
367-
368- /**
369- * @ticket TBD
370- */
371- public function test_serialize_special_pre_leading_newline_handling () {
372- $ processor = WP_HTML_Processor::create_fragment ( "<pre> \n\nx</pre> " );
373- $ text_content = '' ;
374- while ( $ processor ->next_token () ) {
375- if ( '#text ' === $ processor ->get_token_type () ) {
376- $ text_content .= $ processor ->serialize_token ();
377- }
378- }
379- $ this ->assertSame ( "\n\nx " , $ text_content );
380- }
381-
382- /**
383- * @ticket TBD
384- */
385- public function test_serialize_special_textarea_leading_newline_handling () {
386- $ normalized = WP_HTML_Processor::normalize ( "<textarea> \n\nx</textarea> " );
387- $ processor = WP_HTML_Processor::create_fragment ( $ normalized );
388- $ processor ->next_token ();
389- $ text_content = $ processor ->get_modifiable_text ();
390- $ this ->assertSame ( "\nx " , $ text_content );
391- }
392367}
You can’t perform that action at this time.
0 commit comments