- Timestamp:
- 09/25/2023 09:03:19 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/wpInlineScriptTag.php
r51657 r56687 120 120 ); 121 121 } 122 123 /** 124 * Tests that CDATA wrapper duplication is handled. 125 * 126 * @ticket 58664 127 */ 128 public function test_get_inline_script_tag_with_duplicated_cdata_wrappers() { 129 remove_theme_support( 'html5' ); 130 131 $this->assertSame( 132 "<script type=\"text/javascript\">\n/* <![CDATA[ */\n/* <![CDATA[ */ console.log( 'Hello World!' ); /* ]]]]><![CDATA[> */\n/* ]]> */\n</script>\n", 133 wp_get_inline_script_tag( "/* <![CDATA[ */ console.log( 'Hello World!' ); /* ]]> */" ) 134 ); 135 } 122 136 }
Note: See TracChangeset
for help on using the changeset viewer.