Commit dbc6fcdd authored by Avery Musbach's avatar Avery Musbach Committed by Commit Bot

overview: Test that overview mode ends when a display is added

The present CL adds a unit test OverviewSessionTest.AddDisplay to verify
that overview mode ends when a display is added.

Bug: 988839
Change-Id: I529f45bb5120bf03affcb07b0075050c296ee25e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743854Reviewed-by: default avatarSammie Quon <sammiequon@chromium.org>
Commit-Queue: Avery Musbach <amusbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#685260}
parent 9b9d6334
...@@ -1216,6 +1216,15 @@ TEST_F(OverviewSessionTest, Shutdown) { ...@@ -1216,6 +1216,15 @@ TEST_F(OverviewSessionTest, Shutdown) {
ToggleOverview(); ToggleOverview();
} }
// Tests adding a display during overview.
TEST_F(OverviewSessionTest, AddDisplay) {
UpdateDisplay("400x400");
ToggleOverview();
EXPECT_TRUE(InOverviewSession());
UpdateDisplay("400x400,400x400");
EXPECT_FALSE(InOverviewSession());
}
// Tests removing a display during overview. // Tests removing a display during overview.
TEST_F(OverviewSessionTest, RemoveDisplay) { TEST_F(OverviewSessionTest, RemoveDisplay) {
UpdateDisplay("400x400,400x400"); UpdateDisplay("400x400,400x400");
......
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