Remove skipped tests for unimplemented JS plural functions.

The tests have been added as a patch for the original ticket, #22229.

Props MikeHansenMe.
See #22229.

git-svn-id: https://develop.svn.wordpress.org/trunk@30517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2014-11-22 20:11:10 +00:00
parent d5b277e6bd
commit 0b9a21b451
1 changed files with 0 additions and 32 deletions

View File

@ -84,36 +84,4 @@ class Tests_Dependencies_Scripts extends WP_UnitTestCase {
// Cleanup
$wp_scripts->base_url = $base_url_backup;
}
/**
* @ticket 22229
*/
function test_inline_should_not_output_script_tag_with_src() {
wp_enqueue_script( 'baba-inline-0', 'inline' );
$this->assertEquals( '', get_echo( 'wp_print_scripts' ) );
}
/**
* @ticket 22229
*/
function test_json_encode_should_not_encode_special_literal_values() {
if ( ! class_exists( 'WP_JS_Literal' ) ) {
$this->markTestSkipped( "WP_JS_Literal class doesn't exist" );
}
$literal = new WP_JS_Literal( 'baba()' );
$this->assertEquals( '{"x":baba()}', WP_JS_Literal::json_encode( array( 'x' => $literal ), array( $literal ) ) );
}
/**
* @ticket 22229
*/
function test_json_encode_should_not_encode_special_literal_values_with_dependencies() {
if ( ! class_exists( 'WP_JS_Literal' ) ) {
$this->markTestSkipped( "WP_JS_Literal class doesn't exist" );
}
$literal = new WP_JS_Literal( 'baba()', array( 'dep0', 'dep1' ) );
$this->assertEquals( '{"x":baba()}', WP_JS_Literal::json_encode( array( 'x' => $literal ), array( $literal ) ) );
}
}