Make WordPress Core


Ignore:
Timestamp:
01/26/2026 01:21:56 PM (3 months ago)
Author:
jonsurrell
Message:

Build/Test Tools: Clean obsolete non-HTML5 tests.

Support for non-HTML5 scripts was removed in [61415]. Removes obsolete tests and references to the non-HTML5 script behaviors including CDATA wrappers and type attributes.

Developed in https://github.com/WordPress/wordpress-develop/pull/10740.

Follow-up to [61415].

Props jonsurrell, westonruter, mukesh27.
Fixes #64442.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r61519 r61526  
    18771877
    18781878        $this->assertEqualHTML( $expected, $print_scripts, '<body>', 'Scripts are being incorrectly concatenated when a main script is registered as deferred after other blocking scripts are registered. Deferred scripts should not be part of the script concat loader query string. ' );
    1879     }
    1880 
    1881     /**
    1882      * @ticket 42804
    1883      */
    1884     public function test_wp_enqueue_script_with_html5_support_does_not_contain_type_attribute() {
    1885         global $wp_version;
    1886 
    1887         $GLOBALS['wp_scripts']                  = new WP_Scripts();
    1888         $GLOBALS['wp_scripts']->default_version = get_bloginfo( 'version' );
    1889 
    1890         wp_enqueue_script( 'empty-deps-no-version', 'example.com' );
    1891 
    1892         $expected = "<script src='http://example.com?ver={$wp_version}' id='empty-deps-no-version-js'></script>\n";
    1893 
    1894         $this->assertEqualHTML( $expected, get_echo( 'wp_print_scripts' ) );
    18951879    }
    18961880
Note: See TracChangeset for help on using the changeset viewer.