WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/15/2017 09:18:21 PM (3 years ago)
Author:
johnbillion
Message:

Remove skipped tests for unimplemented JS plural functions.

See #22229.

Merges [30517] to the 4.0 branch.

See #40463

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

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

    r26370 r40451  
    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.