summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r--webkit/tools/test_shell/test_shell_platform_delegate_mac.mm17
1 files changed, 8 insertions, 9 deletions
diff --git a/webkit/tools/test_shell/test_shell_platform_delegate_mac.mm b/webkit/tools/test_shell/test_shell_platform_delegate_mac.mm
index 3642e35..76e0757 100644
--- a/webkit/tools/test_shell/test_shell_platform_delegate_mac.mm
+++ b/webkit/tools/test_shell/test_shell_platform_delegate_mac.mm
@@ -255,6 +255,9 @@ void TestShellPlatformDelegate::InitializeGUI() {
// If we're doing automated testing, we won't be using a conventional
// run loop, so tell Cocoa to finish initializing.
[NSApp finishLaunching];
+ } else {
+ // Make sure any settings from a previous layout run are cleared
+ ClearAnyDefaultsForLayoutTests();
}
}
@@ -265,15 +268,11 @@ void TestShellPlatformDelegate::SetWindowPositionForRecording(TestShell *) {
}
void TestShellPlatformDelegate::SelectUnifiedTheme() {
- if (command_line_.HasSwitch(test_shell::kLayoutTests)) {
- SetDefaultsToLayoutTestValues();
- SwizzleNSPasteboard();
-
- if (command_line_.HasSwitch(test_shell::kDumpPixels)) {
- InstallLayoutTestColorProfile();
- }
- } else {
- ClearAnyDefaultsForLayoutTests();
+ SetDefaultsToLayoutTestValues();
+ SwizzleNSPasteboard();
+
+ if (command_line_.HasSwitch(test_shell::kDumpPixels)) {
+ InstallLayoutTestColorProfile();
}
}