Commit 2275d8bb authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

cbui: fix PWA restore tests on Mac

These tests check that window positions and sizes are restored properly.
Unfortunately they put their test windows at (10,10) which the window
server helpfully adjusts to (10,23) to keep them from overlapping the
title bar, which confuses the tests. Have them put their windows at
(50,50) instead to avoid that.

Bug: 1028239
Change-Id: Id69fc6d841878b35c74f0ebe51e8edc127057d92
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937770
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Auto-Submit: Elly Fong-Jones <ellyjones@chromium.org>
Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719345}
parent e9e90c5a
...@@ -973,7 +973,7 @@ IN_PROC_BROWSER_TEST_P(HostedAppPWAOnlyTest, PWASizeIsCorrectlyRestored) { ...@@ -973,7 +973,7 @@ IN_PROC_BROWSER_TEST_P(HostedAppPWAOnlyTest, PWASizeIsCorrectlyRestored) {
EXPECT_TRUE(web_app::AppBrowserController::IsForWebAppBrowser(app_browser_)); EXPECT_TRUE(web_app::AppBrowserController::IsForWebAppBrowser(app_browser_));
NavigateToURLAndWait(app_browser_, GetSecureAppURL()); NavigateToURLAndWait(app_browser_, GetSecureAppURL());
gfx::Rect bounds = gfx::Rect(10, 10, 500, 500); gfx::Rect bounds = gfx::Rect(50, 50, 500, 500);
app_browser_->window()->SetBounds(bounds); app_browser_->window()->SetBounds(bounds);
app_browser_->window()->Close(); app_browser_->window()->Close();
...@@ -991,7 +991,7 @@ IN_PROC_BROWSER_TEST_P(HostedAppPWAOnlyTest, ...@@ -991,7 +991,7 @@ IN_PROC_BROWSER_TEST_P(HostedAppPWAOnlyTest,
EXPECT_TRUE(web_app::AppBrowserController::IsForWebAppBrowser(app_browser_)); EXPECT_TRUE(web_app::AppBrowserController::IsForWebAppBrowser(app_browser_));
NavigateToURLAndWait(app_browser_, GetSecureAppURL()); NavigateToURLAndWait(app_browser_, GetSecureAppURL());
gfx::Rect bounds = gfx::Rect(10, 10, 500, 500); gfx::Rect bounds = gfx::Rect(50, 50, 500, 500);
app_browser_->window()->SetBounds(bounds); app_browser_->window()->SetBounds(bounds);
app_browser_->window()->Close(); app_browser_->window()->Close();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment