From ef3b0753872e17d4fd6744e40be5cd7a62a63a0d Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Mon, 9 Nov 2009 18:15:52 +0000 Subject: Try one other thing temporarily to try to determine cause for a flaky test. TBR=jcampan BUG=16447 TEST=This is changing a test Review URL: http://codereview.chromium.org/376024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31446 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/find_bar_host_browsertest.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/browser/views') diff --git a/chrome/browser/views/find_bar_host_browsertest.cc b/chrome/browser/views/find_bar_host_browsertest.cc index a4bdf60..a341d38 100644 --- a/chrome/browser/views/find_bar_host_browsertest.cc +++ b/chrome/browser/views/find_bar_host_browsertest.cc @@ -566,11 +566,15 @@ IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, if (start_position.x() == position.x()) { // Failure case. Try to gather more data. std::string debug_msg = "Position check failed once. "; + + // First see if flushing the message loop has any effect. + MessageLoop::current()->RunAllPending(); + if (!GetFindBarWindowInfo(&position, &fully_visible)) { debug_msg += "Get failed. "; } else { if (start_position.x() == position.x()) - debug_msg += "Still the same. "; + debug_msg += "Position check failed again. "; else debug_msg += "They now differ. "; } -- cgit v1.1