Make WordPress Core

Changeset 58892


Ignore:
Timestamp:
08/13/2024 09:42:07 PM (5 weeks ago)
Author:
dmsnell
Message:

HTML API: Remove unnecessary skips in tests for unsupported markup.

The HTML API allowed tests to be skipped for unsupported HTML, for example tags that had not yet been implemented. This provided stability to the test suite while primary support was being added.

In many places, the tags are now fully supported and the test skips can be removed.

Developed in https://github.com/wordpress/wordpress-develop/pull/7186
Discussed in https://core.trac.wordpress.org/ticket/61646

Props jonsurrell.
See #61646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php

    r58871 r58892  
    156156        $found_tag = $processor->next_tag();
    157157
    158         if ( WP_HTML_Processor::ERROR_UNSUPPORTED === $processor->get_last_error() ) {
    159             $this->markTestSkipped( "Tag {$tag_name} is not supported." );
    160         }
    161 
    162158        $this->assertTrue(
    163159            $found_tag,
     
    220216        $processor   = WP_HTML_Processor::create_fragment( $self_contained_token );
    221217        $found_token = $processor->next_token();
    222 
    223         if ( WP_HTML_Processor::ERROR_UNSUPPORTED === $processor->get_last_error() ) {
    224             $this->markTestSkipped( "HTML '{$self_contained_token}' is not supported." );
    225         }
    226218
    227219        $this->assertTrue(
     
    305297
    306298        $found_tag = $processor->next_token();
    307 
    308         if ( WP_HTML_Processor::ERROR_UNSUPPORTED === $processor->get_last_error() ) {
    309             $this->markTestSkipped( "Tag {$tag_name} is not supported." );
    310         }
    311299
    312300        $this->assertTrue(
Note: See TracChangeset for help on using the changeset viewer.