diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-07 21:54:01 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-07 21:54:01 +0000 |
commit | 2214ed559ee737abd1ab88d4c2d7c456b2ef5b5b (patch) | |
tree | 3b44ea8a388c75790e3bdd2c4fbf3ef593af8d7d /chrome_frame | |
parent | 7cb19b4202a97cc3cc6b88d7c9d58ea5885d5cf3 (diff) | |
download | chromium_src-2214ed559ee737abd1ab88d4c2d7c456b2ef5b5b.zip chromium_src-2214ed559ee737abd1ab88d4c2d7c456b2ef5b5b.tar.gz chromium_src-2214ed559ee737abd1ab88d4c2d7c456b2ef5b5b.tar.bz2 |
Take snapshots when Chrome Frame fails to start in IE.
R=grt
BUG=None
TEST=Comment out OnInitialTabLoaded and run the test suite.
Review URL: http://codereview.chromium.org/10384040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/test/net/fake_external_tab.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc index 81ef90c..a4f4ec7 100644 --- a/chrome_frame/test/net/fake_external_tab.cc +++ b/chrome_frame/test/net/fake_external_tab.cc @@ -44,6 +44,7 @@ #include "chrome/common/chrome_switches.h" #include "chrome/common/pref_names.h" #include "chrome/renderer/chrome_content_renderer_client.h" +#include "chrome/test/base/ui_test_utils.h" #include "chrome/test/logging/win/file_logger.h" #include "chrome/test/logging/win/log_file_printer.h" #include "chrome/test/logging/win/test_log_collector.h" @@ -704,6 +705,11 @@ void CFUrlRequestUnittestRunner::StartInitializationTimeout() { void CFUrlRequestUnittestRunner::OnInitializationTimeout() { LOG(ERROR) << "Failed to start Chrome Frame in the host browser."; + + FilePath snapshot; + if (ui_test_utils::SaveScreenSnapshotToDesktop(&snapshot)) + LOG(ERROR) << "Screen snapshot saved to " << snapshot.value(); + StopFileLogger(true); if (launch_browser_) { |