- Timestamp:
- 10/05/2023 10:40:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php
r56380 r56790 28 28 */ 29 29 public function test_in_body_skips_unexpected_button_closer() { 30 $p = WP_HTML_Processor::create Fragment( '<div>Test</button></div>' );30 $p = WP_HTML_Processor::create_fragment( '<div>Test</button></div>' ); 31 31 32 32 $p->step(); … … 53 53 */ 54 54 public function test_in_body_button_with_no_button_in_scope() { 55 $p = WP_HTML_Processor::create Fragment( '<div><p>Click the button <button one>here</button>!</p></div><button two>not here</button>' );55 $p = WP_HTML_Processor::create_fragment( '<div><p>Click the button <button one>here</button>!</p></div><button two>not here</button>' ); 56 56 57 57 $this->assertTrue( $p->next_tag( 'BUTTON' ), 'Could not find expected first button.' ); … … 80 80 */ 81 81 public function test_in_body_button_with_button_in_scope_as_parent() { 82 $p = WP_HTML_Processor::create Fragment( '<div><p>Click the button <button one>almost<button two>here</button>!</p></div><button three>not here</button>' );82 $p = WP_HTML_Processor::create_fragment( '<div><p>Click the button <button one>almost<button two>here</button>!</p></div><button three>not here</button>' ); 83 83 84 84 $this->assertTrue( $p->next_tag( 'BUTTON' ), 'Could not find expected first button.' ); … … 115 115 */ 116 116 public function test_in_body_button_with_button_in_scope_as_ancestor() { 117 $p = WP_HTML_Processor::create Fragment( '<div><button one><p>Click the button <span><button two>here</button>!</span></p></div><button three>not here</button>' );117 $p = WP_HTML_Processor::create_fragment( '<div><button one><p>Click the button <span><button two>here</button>!</span></p></div><button three>not here</button>' ); 118 118 119 119 // This button finds itself normally nesting inside the DIV. … … 150 150 */ 151 151 public function test_in_body_any_other_end_tag_with_unclosed_special_element() { 152 $p = WP_HTML_Processor::create Fragment( '<div><span><p></span><div>' );152 $p = WP_HTML_Processor::create_fragment( '<div><span><p></span><div>' ); 153 153 154 154 $p->next_tag( 'P' ); … … 173 173 */ 174 174 public function test_in_body_any_other_end_tag_with_unclosed_non_special_element() { 175 $p = WP_HTML_Processor::create Fragment( '<div><span><code></span><div>' );175 $p = WP_HTML_Processor::create_fragment( '<div><span><code></span><div>' ); 176 176 177 177 $p->next_tag( 'CODE' );
Note: See TracChangeset
for help on using the changeset viewer.