Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3433)

Unified Diff: chrome/browser/views/find_bar_host_browsertest.cc

Issue 376024: Try one other thing temporarily to try to determine cause for a flaky test.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/find_bar_host_browsertest.cc
===================================================================
--- chrome/browser/views/find_bar_host_browsertest.cc (revision 31399)
+++ chrome/browser/views/find_bar_host_browsertest.cc (working copy)
@@ -566,11 +566,15 @@
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. ";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698