File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/phpunit/tests/html-api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ public function test_complex_javascript_and_json_auto_escaping() {
549549 $ processor ->set_attribute ( 'type ' , 'importmap ' );
550550 $ importmap_data = array (
551551 'imports ' => array (
552- '</SCRIPT> \\<!-- \\<script> ' => " ./script " ,
552+ '</SCRIPT> \\<!-- \\<script> ' => ' ./script ' ,
553553 ),
554554 );
555555
@@ -573,7 +573,7 @@ public function test_complex_javascript_and_json_auto_escaping() {
573573JS;
574574 $ processor ->set_modifiable_text ( $ javascript );
575575
576- $ expected = <<<'HTML'
576+ $ expected = <<<'HTML'
577577<script type="importmap">{"imports":{"\u003C/SCRIPT>\\\u003C!--\\\u003Cscript>":"./script"}}</script>
578578<script type="module">import '</\u0053CRIPT>\\<!--\\<\u0073cript>';</script>
579579<h1>OK</h1>
@@ -585,7 +585,7 @@ public function test_complex_javascript_and_json_auto_escaping() {
585585 $ processor = new WP_HTML_Tag_Processor ( $ updated_html );
586586 $ processor ->next_tag ( 'SCRIPT ' );
587587 $ this ->assertSame ( 'importmap ' , $ processor ->get_attribute ( 'type ' ) );
588- $ importmap_json = $ processor ->get_modifiable_text ();
588+ $ importmap_json = $ processor ->get_modifiable_text ();
589589 $ decoded_importmap = json_decode ( $ importmap_json , true );
590590 $ this ->assertSame ( 'No error ' , json_last_error_msg () );
591591 $ this ->assertEquals (
You can’t perform that action at this time.
0 commit comments