diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 09:26:16 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 09:26:16 +0000 |
commit | 0bfe67466dfd44dbd99c2a4785405039b01d4019 (patch) | |
tree | bb97b0a304642dcdb2634b273fa501611aaa9eee | |
parent | eb85b8b1c5da6107b18c0439f51e661113b627f3 (diff) | |
download | chromium_src-0bfe67466dfd44dbd99c2a4785405039b01d4019.zip chromium_src-0bfe67466dfd44dbd99c2a4785405039b01d4019.tar.gz chromium_src-0bfe67466dfd44dbd99c2a4785405039b01d4019.tar.bz2 |
More debugging output for PlatformAppBrowserTest.WindowsApiBounds GTK failures
There were some more failures even after I checked in crrev.com/171709, so this CL
might give some more visibility into what's going wrong.
BUG=164735
Review URL: https://chromiumcodereview.appspot.com/11442038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173434 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/extensions/api/app_window/app_window_apitest.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/browser/extensions/api/app_window/app_window_apitest.cc b/chrome/browser/extensions/api/app_window/app_window_apitest.cc index 1c61278..cc6e436 100644 --- a/chrome/browser/extensions/api/app_window/app_window_apitest.cc +++ b/chrome/browser/extensions/api/app_window/app_window_apitest.cc @@ -14,6 +14,10 @@ #include "chrome/test/base/testing_profile.h" #include "ui/gfx/rect.h" +#ifdef TOOLKIT_GTK +#include "content/public/test/test_utils.h" +#endif + namespace { class TestShellWindowRegistryObserver @@ -73,6 +77,23 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiBounds) { #endif // !TOOLKIT_GTK ready_listener.Reply(base::IntToString(slop)); + +#ifdef TOOLKIT_GTK + // TODO(asargent)- this is here to help track down the root cause of + // crbug.com/164735. + { + gfx::Rect last_bounds; + while (!success_listener.was_satisfied()) { + gfx::Rect current_bounds = window->GetBaseWindow()->GetBounds(); + if (current_bounds != last_bounds) { + LOG(INFO) << "new bounds: " << current_bounds.ToString(); + } + last_bounds = current_bounds; + content::RunAllPendingInMessageLoop(); + } + } +#endif + ASSERT_TRUE(success_listener.WaitUntilSatisfied()); } |