Skip to content

Commit f7d903e

Browse files
committed
Remove overly-specific tests
1 parent 9ef9a3f commit f7d903e

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)