Commit 0ca8bd3c authored by Shawn Gallea's avatar Shawn Gallea Committed by Commit Bot

EXO: Fix FullscreenShellSurface Bounds Unittest

Fix bounds unittest to make sure an offset from fullscreen_surface
will be detected.

Bug: 896710
Test: FullscreenShellSurfaceTest.Bounds
Change-Id: Ia8e3213b5c854f423537a9d0e58455f3d497bea7
Reviewed-on: https://chromium-review.googlesource.com/c/1340863Reviewed-by: default avatarDaniel Nicoara <dnicoara@chromium.org>
Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Commit-Queue: Shawn Gallea <sagallea@google.com>
Cr-Commit-Position: refs/heads/master@{#608926}
parent 66b7797a
......@@ -173,7 +173,8 @@ TEST_F(FullscreenShellSurfaceTest, Bounds) {
surface->Commit();
gfx::Rect fullscreen_bounds =
fullscreen_surface->GetWidget()->GetWindowBoundsInScreen();
EXPECT_EQ(fullscreen_bounds.size(), new_root_bounds.size());
gfx::Rect expected_bounds(new_root_bounds.size());
EXPECT_EQ(fullscreen_bounds, expected_bounds);
}
} // namespace
......
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