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

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 1823283003: Fix flakiness in PopupMenu tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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: content/browser/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index e68cbb26fe6e2a852fc4b332e3511e04098efd26..a0442dba8e7c9b3b289ed7406d9254a2e37d6bc3 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -5190,7 +5190,6 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, MAYBE_PopupMenuTest) {
// Position main window to ensure consistent screen coordinates.
RenderWidgetHostViewBase* rwhv_root = static_cast<RenderWidgetHostViewBase*>(
root->current_frame_host()->GetRenderWidgetHost()->GetView());
- rwhv_root->SetBounds(gfx::Rect(100, 100, 500, 500));
static_cast<WebContentsImpl*>(shell()->web_contents())->SendScreenRects();
content::TestNavigationObserver navigation_observer(shell()->web_contents());
@@ -5249,7 +5248,6 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, MAYBE_NestedPopupMenuTest) {
// Position main window to ensure consistent screen coordinates.
RenderWidgetHostViewBase* rwhv_root = static_cast<RenderWidgetHostViewBase*>(
root->current_frame_host()->GetRenderWidgetHost()->GetView());
- rwhv_root->SetBounds(gfx::Rect(100, 100, 500, 500));
static_cast<WebContentsImpl*>(shell()->web_contents())->SendScreenRects();
// For clarity, we are labeling the frame tree nodes as:
« 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