Skip to content

Commit d0cbb00

Browse files
committed
Remove problematic tests
1 parent df2affa commit d0cbb00

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

tests/phpunit/tests/html-api/wpHtmlTagProcessor.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,18 +3077,16 @@ public function test_script_tag_parsing( string $input, bool $closes ) {
30773077
*/
30783078
public static function data_script_tag(): array {
30793079
return array(
3080-
'Basic script tag' => array( '<script></script>', true ),
3081-
'Script with type attribute' => array( '<script type="text/javascript"></script>', true ),
3082-
'Script data escaped' => array( '<script><!--</script>', true ),
3083-
'Script data double-escaped exit (comment)' => array( '<script><!--<script>--></script>', true ),
3084-
'Script data double-escaped exit (closed)' => array( '<script><!--<script></script></script>', true ),
3080+
'Basic script tag' => array( '<script></script>', true ),
3081+
'Script with type attribute' => array( '<script type="text/javascript"></script>', true ),
3082+
'Script data escaped' => array( '<script><!--</script>', true ),
3083+
'Script data double-escaped exit (comment)' => array( '<script><!--<script>--></script>', true ),
3084+
'Script data double-escaped exit (closed)' => array( '<script><!--<script></script></script>', true ),
30853085
'Script data double-escaped exit (closed/truncated)' => array( '<script><!--<script></script </script>', true ),
3086-
'Script data no double-escape' => array( '<script><!-- --><script></script>', true ),
3087-
'Script data no double-escape (short comment)' => array( '<script><!--><script></script>', true ),
3088-
'Script data almost double-escaped' => array( '<script><!--<script</script>', true ),
3086+
'Script data no double-escape' => array( '<script><!-- --><script></script>', true ),
30893087

3090-
'Script tag with self-close flag (ignored)' => array( '<script />', false ),
3091-
'Script data double-escaped' => array( '<script><!--<script></script>', false ),
3088+
'Script tag with self-close flag (ignored)' => array( '<script />', false ),
3089+
'Script data double-escaped' => array( '<script><!--<script></script>', false ),
30923090
);
30933091
}
30943092
}

0 commit comments

Comments
 (0)