From 0b9a21b451389510371a1e87fdde4da956a4e754 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 20:11:10 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/dependencies/scripts.php | 32 -------------------- 1 file changed, 32 deletions(-) diff --git a/tests/phpunit/tests/dependencies/scripts.php b/tests/phpunit/tests/dependencies/scripts.php index b1287e936d..3f4e724e2c 100644 --- a/tests/phpunit/tests/dependencies/scripts.php +++ b/tests/phpunit/tests/dependencies/scripts.php @@ -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 ) ) ); - } }