summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorbradnelson@chromium.org <bradnelson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 21:23:43 +0000
committerbradnelson@chromium.org <bradnelson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 21:23:43 +0000
commit0170caac6453b9d0a946fea8e22d3e48a82119f1 (patch)
treed15a626c002c465adcdd5c5cd1b40a5ada09bf16 /webkit
parent9d4a21ff59f49932af7179ea6451736f51b4f998 (diff)
downloadchromium_src-0170caac6453b9d0a946fea8e22d3e48a82119f1.zip
chromium_src-0170caac6453b9d0a946fea8e22d3e48a82119f1.tar.gz
chromium_src-0170caac6453b9d0a946fea8e22d3e48a82119f1.tar.bz2
Rolling back 22185.
BUG=None TEST=None TBR=dpranke Review URL: http://codereview.chromium.org/160477 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/layout_tests/layout_package/platform_utils_linux.py4
-rw-r--r--webkit/tools/layout_tests/layout_package/platform_utils_mac.py1
-rw-r--r--webkit/tools/layout_tests/layout_package/platform_utils_win.py4
-rwxr-xr-xwebkit/tools/layout_tests/run_webkit_tests.py8
-rw-r--r--webkit/tools/test_shell/test_shell.gyp19
-rw-r--r--webkit/tools/test_shell/win/layout_test_helper.cc62
6 files changed, 8 insertions, 90 deletions
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
index 7d06054..b496112 100644
--- a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
+++ b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
@@ -172,10 +172,6 @@ class PlatformUtility(object):
"""Path to the image_diff binary."""
return PathFromBuildResults(target, 'image_diff')
- def LayoutTestHelperPath(self, target):
- """Path to the layout_test helper binary, if needed, empty otherwise"""
- return ''
-
def TestShellBinary(self):
"""The name of the binary for TestShell."""
return 'test_shell'
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_mac.py b/webkit/tools/layout_tests/layout_package/platform_utils_mac.py
index 1aa19b0..0a79ba6 100644
--- a/webkit/tools/layout_tests/layout_package/platform_utils_mac.py
+++ b/webkit/tools/layout_tests/layout_package/platform_utils_mac.py
@@ -158,7 +158,6 @@ class PlatformUtility(object):
return PathFromBase('xcodebuild', target, 'image_diff')
def LayoutTestHelperBinaryPath(self, target):
- """Path to the layout_test helper binary, if needed, empty otherwise"""
return PathFromBase('xcodebuild', target, 'layout_test_helper')
def TestShellBinary(self):
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_win.py b/webkit/tools/layout_tests/layout_package/platform_utils_win.py
index cb5b343..2ba299a 100644
--- a/webkit/tools/layout_tests/layout_package/platform_utils_win.py
+++ b/webkit/tools/layout_tests/layout_package/platform_utils_win.py
@@ -188,10 +188,6 @@ class PlatformUtility(google.platform_utils_win.PlatformUtility):
def ImageCompareExecutablePath(self, target):
return PathFromBase('chrome', target, 'image_diff.exe')
- def LayoutTestHelperBinaryPath(self, target):
- """Path to the layout_test helper binary, if needed, empty otherwise"""
- return PathFromBase('chrome', target, 'layout_test_helper.exe')
-
def TestShellBinary(self):
"""The name of the binary for TestShell."""
return 'test_shell.exe'
diff --git a/webkit/tools/layout_tests/run_webkit_tests.py b/webkit/tools/layout_tests/run_webkit_tests.py
index 65b719e..a209bdb 100755
--- a/webkit/tools/layout_tests/run_webkit_tests.py
+++ b/webkit/tools/layout_tests/run_webkit_tests.py
@@ -514,9 +514,11 @@ class TestRunner:
# Start up any helper needed
layout_test_helper_proc = None
- if not options.no_pixel_tests:
- helper_path = path_utils.LayoutTestHelperBinaryPath(self._options.target)
- if len(helper_path):
+ if sys.platform in ('darwin'):
+ # Mac uses a helper for manging the color sync profile for pixel tests.
+ if not options.no_pixel_tests:
+ helper_path = \
+ path_utils.LayoutTestHelperBinaryPath(self._options.target)
logging.info("Starting layout helper %s" % helper_path)
layout_test_helper_proc = subprocess.Popen([helper_path],
stdin=subprocess.PIPE,
diff --git a/webkit/tools/test_shell/test_shell.gyp b/webkit/tools/test_shell/test_shell.gyp
index 9c17de5..330bb01 100644
--- a/webkit/tools/test_shell/test_shell.gyp
+++ b/webkit/tools/test_shell/test_shell.gyp
@@ -208,7 +208,7 @@
},
'conditions': [
['OS=="win"', {
- 'dependencies': ['test_worker', 'layout_test_helper'],
+ 'dependencies': ['test_worker'],
'resource_include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
@@ -628,20 +628,7 @@
},
],
}],
- ['OS=="win"', {
- 'targets': [
- {
- # Helper application that manages the color sync profile on mac
- # for the test shells run by the layout tests.
- 'target_name': 'layout_test_helper',
- 'type': 'executable',
- 'sources': [
- 'win/layout_test_helper.cc',
- ],
- },
- ],
- }],
- ['OS=="mac"', {
+ ['OS=="mac"', {
'targets': [
{
# Helper application that manages the color sync profile on mac
@@ -657,7 +644,7 @@
],
},
},
- ],
+ ]
}],
],
}
diff --git a/webkit/tools/test_shell/win/layout_test_helper.cc b/webkit/tools/test_shell/win/layout_test_helper.cc
deleted file mode 100644
index b9bf0eb..0000000
--- a/webkit/tools/test_shell/win/layout_test_helper.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-// This is a simple helper app that disables Cleartype and does whatever
-// else it can to get the system into the configuration the layout tests
-// expect.
-
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <windows.h>
-
-BOOL g_font_smoothing_enabled = FALSE;
-
-static void SaveInitialSettings(void) {
- BOOL ret;
- ret = SystemParametersInfo(SPI_GETFONTSMOOTHING, 0,
- (PVOID)&g_font_smoothing_enabled, 0);
-}
-
-// Technically, all we need to do is disable ClearType. However,
-// for some reason, the call to SPI_SETFONTSMOOTHINGTYPE doesn't
-// seem to work, so we just disable font smoothing all together
-// (which works reliably)
-static void InstallLayoutTestSettings(void) {
- BOOL ret;
- ret = SystemParametersInfo(SPI_SETFONTSMOOTHING, (UINT)FALSE, (PVOID)0, 0);
-}
-
-static void RestoreInitialSettings(void) {
- BOOL ret;
- ret = SystemParametersInfo(SPI_SETFONTSMOOTHING,
- (UINT)g_font_smoothing_enabled, (PVOID)0, 0);
-}
-
-static void SimpleSignalHandler(int sig) {
- // Try to restore the settings and then go down cleanly
- RestoreInitialSettings();
- exit(128 + sig);
-}
-
-int main(int argc, char *argv[]) {
- // Hooks the ways we might get told to clean up...
- signal(SIGINT, SimpleSignalHandler);
- signal(SIGTERM, SimpleSignalHandler);
-
- SaveInitialSettings();
-
- InstallLayoutTestSettings();
-
- // Let the script know we're ready
- printf("ready\n");
- fflush(stdout);
-
- // Wait for any key (or signal)
- getchar();
-
- RestoreInitialSettings();
-
- return 0;
-}