Make WordPress Core


Ignore:
Timestamp:
02/20/2020 05:04:42 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Fix the Travis CI build for the 3.9 branch.

Among other fixes, this backports [28943], [28961], [28964-28968], [28988], [29120], [29251], [29503], [29860], [29869], [29954], [30001], [30160], [30282], [30285], [30289-30291], [30513-30514], [30516-30521], [30523-30524], [30526], [30529-30530], [31253-31254], [31257-31259], [31622], [33374], [40255], [40257], [40259], [40269], [40271], [40446], [40449], [40457], [40604], [40538], [40833], [41082], [41303], [41306], [44993].

See #49485.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/tests/phpunit/tests/dependencies/scripts.php

    r26370 r47329  
    8585                $wp_scripts->base_url = $base_url_backup;
    8686        }
    87 
    88         /**
    89          * @ticket 22229
    90          */
    91         function test_inline_should_not_output_script_tag_with_src() {
    92                 wp_enqueue_script( 'baba-inline-0', 'inline' );
    93                 $this->assertEquals( '', get_echo( 'wp_print_scripts' ) );
    94         }
    95 
    96         /**
    97          * @ticket 22229
    98          */
    99         function test_json_encode_should_not_encode_special_literal_values() {
    100                 if ( ! class_exists( 'WP_JS_Literal' ) ) {
    101                         $this->markTestSkipped( "WP_JS_Literal class doesn't exist" );
    102                 }
    103 
    104                 $literal = new WP_JS_Literal( 'baba()' );
    105                 $this->assertEquals( '{"x":baba()}', WP_JS_Literal::json_encode( array( 'x' => $literal ), array( $literal ) ) );
    106         }
    107 
    108         /**
    109          * @ticket 22229
    110          */
    111         function test_json_encode_should_not_encode_special_literal_values_with_dependencies() {
    112                 if ( ! class_exists( 'WP_JS_Literal' ) ) {
    113                         $this->markTestSkipped( "WP_JS_Literal class doesn't exist" );
    114                 }
    115                
    116                 $literal = new WP_JS_Literal( 'baba()', array( 'dep0', 'dep1' ) );
    117                 $this->assertEquals( '{"x":baba()}', WP_JS_Literal::json_encode( array( 'x' => $literal ), array( $literal ) ) );
    118         }
    11987}
Note: See TracChangeset for help on using the changeset viewer.