- Timestamp:
- 08/02/2024 11:46:45 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
r58740 r58845 2876 2876 ); 2877 2877 } 2878 2879 /** 2880 * Test an infinite loop bugfix in incomplete script tag parsing. 2881 * 2882 * @small 2883 * 2884 * @ticket 61810 2885 */ 2886 public function test_script_tag_processing_no_infinite_loop_final_dash() { 2887 $processor = new WP_HTML_Tag_Processor( '<script>-' ); 2888 2889 $this->assertFalse( $processor->next_tag() ); 2890 $this->assertTrue( $processor->paused_at_incomplete_token() ); 2891 } 2892 2893 /** 2894 * Test an infinite loop bugfix in incomplete script tag parsing. 2895 * 2896 * @small 2897 * 2898 * @ticket 61810 2899 */ 2900 public function test_script_tag_processing_no_infinite_loop_final_left_angle_bracket() { 2901 $processor = new WP_HTML_Tag_Processor( '<script><' ); 2902 2903 $this->assertFalse( $processor->next_tag() ); 2904 $this->assertTrue( $processor->paused_at_incomplete_token() ); 2905 } 2878 2906 }
Note: See TracChangeset
for help on using the changeset viewer.