@@ -531,11 +531,13 @@ public function test_basic_assertion_common_comments( $html, $text ) {
531531 */
532532 public function data_common_comments () {
533533 return array (
534- 'Shortest comment ' => array ( '<!--> ' , '' ),
535- 'Short comment ' => array ( '<!---> ' , '' ),
536- 'PI node without target ' => array ( '<? missing?> ' , ' missing? ' ),
537- 'Invalid PI node ' => array ( '<?/missing/> ' , '/missing/ ' ),
538- 'Invalid ! directive ' => array ( '<!something else> ' , 'something else ' ),
534+ 'Shortest comment ' => array ( '<!--> ' , '' ),
535+ 'Short comment ' => array ( '<!---> ' , '' ),
536+ 'Short comment w/o text ' => array ( '<!----> ' , '' ),
537+ 'Short comment with text ' => array ( '<!-----> ' , '- ' ),
538+ 'PI node without target ' => array ( '<? missing?> ' , ' missing? ' ),
539+ 'Invalid PI node ' => array ( '<?/missing/> ' , '/missing/ ' ),
540+ 'Invalid ! directive ' => array ( '<!something else> ' , 'something else ' ),
539541 );
540542 }
541543
@@ -581,26 +583,6 @@ public function test_basic_assertion_html_comment() {
581583 );
582584 }
583585
584- /**
585- * Ensures that <!-----> HTML comment is properly parsed.
586- *
587- * @ticket 60170
588- *
589- * @since 6.5.0
590- *
591- * @covers WP_HTML_Tag_Processor::next_token
592- */
593- public function test_html_comment_single_dash () {
594- $ processor = WP_HTML_Processor::create_fragment ( '<!-----> ' );
595- $ processor ->next_token ();
596-
597- $ this ->assertSame (
598- '- ' ,
599- $ processor ->get_modifiable_text (),
600- 'Found incorrect modifiable text. '
601- );
602- }
603-
604586 /**
605587 * Ensures that normative DOCTYPE elements are properly parsed.
606588 *
0 commit comments