From 98e788c259b2f1f58ed74a1cd9cd41cdb4065d03 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 7 Aug 2013 06:51:04 +0000 Subject: [PATCH] Remove the legacy Tests_Theme_ThemeDirLarge test to drop the wpcom-themes external/dependency. see #24976. git-svn-id: https://develop.svn.wordpress.org/trunk@25004 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/build/logs/junit.xml | 2057 --------------------------- tests/tests/theme/themeDirLarge.php | 70 - 2 files changed, 2127 deletions(-) delete mode 100644 tests/build/logs/junit.xml delete mode 100644 tests/tests/theme/themeDirLarge.php diff --git a/tests/build/logs/junit.xml b/tests/build/logs/junit.xml deleted file mode 100644 index a9cab850f2..0000000000 --- a/tests/build/logs/junit.xml +++ /dev/null @@ -1,2057 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tests_HTTP_curl::test_post_redirect_to_method_300 -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'POST' -+'Redirect 5 of 5 is FINAL.<br/>GET['rt'] = Total times to redirect. Defaults to 5.<br />GET['r'] = Current redirection. Defaults to 0.<br /><a href='http://api.wordpress.org/core/tests/1.0/redirection.php?source=true'>View Source</a>' - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:205 - - - - Tests_HTTP_curl::test_ip_url_with_host_header -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'PASS' -+'Redirect 0 of 5' - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:241 - - - - Tests_HTTP_curl::test_multiple_location_headers -Failed asserting that 'http://api.wordpress.org/core/tests/1.0/redirection.php?rt=5&r=1' is of type "array". - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:254 - - - - - - - - - - - - - - - - - - - - Tests_HTTP_fsockopen::test_post_redirect_to_method_300 -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'POST' -+'Redirect 5 of 5 is FINAL.<br/>GET['rt'] = Total times to redirect. Defaults to 5.<br />GET['r'] = Current redirection. Defaults to 0.<br /><a href='http://api.wordpress.org/core/tests/1.0/redirection.php?source=true'>View Source</a>' - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:205 - - - - Tests_HTTP_fsockopen::test_ip_url_with_host_header -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'PASS' -+'Redirect 0 of 5' - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:241 - - - - Tests_HTTP_fsockopen::test_multiple_location_headers -Failed asserting that 'http://api.wordpress.org/core/tests/1.0/redirection.php?rt=5&r=1' is of type "array". - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:254 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tests_HTTP_streams::test_post_redirect_to_method_300 -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'POST' -+'Redirect 5 of 5 is FINAL.<br/>GET['rt'] = Total times to redirect. Defaults to 5.<br />GET['r'] = Current redirection. Defaults to 0.<br /><a href='http://api.wordpress.org/core/tests/1.0/redirection.php?source=true'>View Source</a>' - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:205 - - - - Tests_HTTP_streams::test_ip_url_with_host_header -Failed asserting that two strings are equal. ---- Expected -+++ Actual -@@ @@ --'PASS' -+'Redirect 0 of 5' - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:241 - - - - Tests_HTTP_streams::test_multiple_location_headers -Failed asserting that 'http://api.wordpress.org/core/tests/1.0/redirection.php?rt=5&r=1' is of type "array". - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/http/base.php:254 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tests_Post_Revisions::test_revision_dont_save_revision_if_unchanged -Failed asserting that actual size 4 matches expected size 3. - -/Users/nacin/Sites/develop.svn.wordpress.org/tests/tests/post/revisions.php:83 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/tests/theme/themeDirLarge.php b/tests/tests/theme/themeDirLarge.php deleted file mode 100644 index b353cf6421..0000000000 --- a/tests/tests/theme/themeDirLarge.php +++ /dev/null @@ -1,70 +0,0 @@ -theme_root = DIR_TESTDATA . '/wpcom-themes'; - - $this->orig_theme_dir = $GLOBALS['wp_theme_directories']; - $GLOBALS['wp_theme_directories'] = array( WP_CONTENT_DIR . '/themes', $this->theme_root ); - - add_filter('theme_root', array(&$this, '_theme_root')); - - // clear caches - wp_clean_themes_cache(); - unset( $GLOBALS['wp_themes'] ); - } - - function tearDown() { - $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir; - remove_filter('theme_root', array(&$this, '_theme_root')); - wp_clean_themes_cache(); - unset( $GLOBALS['wp_themes'] ); - parent::tearDown(); - } - - // replace the normal theme root dir with our premade test dir - function _theme_root($dir) { - return $this->theme_root; - } - - function _filter_out_themes_not_in_root( &$themes ) { - foreach ( $themes as $key => $theme ) { - if ( $theme->get_theme_root() != $this->theme_root ) - unset( $themes[ $key ] ); - } - } - - function test_theme_list() { - $themes = get_themes(); - $this->_filter_out_themes_not_in_root( $themes ); - $theme_names = array_keys( $themes ); - $this->assertEquals(87, count( $theme_names ) ); - $length = strlen( serialize( $themes ) ); - - //2.9 pre [12226] - $this->assertLessThanOrEqual(387283, $length ); - //2.8.5 - $this->assertLessThanOrEqual(368319, $length ); - //2.9 post [12226] - $this->assertLessThanOrEqual(261998, $length ); - //3.4 post [20029], #20103 - $this->assertLessThanOrEqual(100000, $length ); - } - - /** - * Reducing in-memory size further. - * - * @ticket 11214 - */ - function test_smaller_storage() { - $themes = get_themes(); - $this->_filter_out_themes_not_in_root( $themes ); - $theme_names = array_keys($themes); - $this->assertEquals(87, count($theme_names)); - $this->assertLessThanOrEqual(136342, strlen(serialize($themes))); - } -}