Commit 34c7d0d6 authored by Bret Sepulveda's avatar Bret Sepulveda Committed by Commit Bot

Fix PopupBlockerBrowserTest.WindowFeatures when Refresh is on.

Refresh is a project to redesign the core UI, primarily the tapstrip's
height and shape. The result is that popup windows are slightly taller
because of some added frame padding. This patch makes the test
checking for the height of the window more lenient.

Bug: 846410
Change-Id: If62e8076d78477b82b80f13d19c0838b32f9ea64
Reviewed-on: https://chromium-review.googlesource.com/1100386
Commit-Queue: Bret Sepulveda <bsep@chromium.org>
Reviewed-by: default avatarCharlie Harrison <csharrison@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567408}
parent e8f488aa
......@@ -499,7 +499,8 @@ IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, MAYBE_WindowFeatures) {
if (!views_mode_controller::IsViewsBrowserCocoa())
return;
#endif
EXPECT_TRUE(249 <= window_size.height() && window_size.height() <= 251);
EXPECT_GE(window_size.height(), 249);
EXPECT_LE(window_size.height(), 253);
}
IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, CorrectReferrer) {
......
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