From 2214ed559ee737abd1ab88d4c2d7c456b2ef5b5b Mon Sep 17 00:00:00 2001 From: "erikwright@chromium.org" Date: Mon, 7 May 2012 21:54:01 +0000 Subject: 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 --- chrome_frame/test/net/fake_external_tab.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome_frame') 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_) { -- cgit v1.1