diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 17:49:12 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 17:49:12 +0000 |
commit | 1b283269dc993a2684e506a144d76c186eb61fca (patch) | |
tree | a8a1259b0eae106c3a293ff82c058492e4a256eb /webkit/tools/test_shell | |
parent | f3d7ce13d25fadc31f6a61ae7aa0f1a0578cd261 (diff) | |
download | chromium_src-1b283269dc993a2684e506a144d76c186eb61fca.zip chromium_src-1b283269dc993a2684e506a144d76c186eb61fca.tar.gz chromium_src-1b283269dc993a2684e506a144d76c186eb61fca.tar.bz2 |
We need to reset the theme stuff in a code path that actually used when not
in layout test mode.
Review URL: http://codereview.chromium.org/19668
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r-- | webkit/tools/test_shell/test_shell_platform_delegate_mac.mm | 17 |
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(); } } |