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

Unified Diff: ash/screen_ash_unittest.cc

Issue 13593006: Crash on non-primary full screen exit (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « ash/screen_ash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_ash_unittest.cc
diff --git a/ash/screen_ash_unittest.cc b/ash/screen_ash_unittest.cc
index b00eb54331df9fd32e107493964cd5f6c82f04e7..7ef789b8abd98985a7b8fb1fe6dac5045fcc975d 100644
--- a/ash/screen_ash_unittest.cc
+++ b/ash/screen_ash_unittest.cc
@@ -71,6 +71,22 @@ TEST_F(ScreenAshTest, Bounds) {
}
}
+// Test verifies a stable handling of secondary screen widget changes
+// (crbug.com/226132).
+TEST_F(ScreenAshTest, StabilityTest) {
+ UpdateDisplay("600x600,500x500");
+ views::Widget* secondary = views::Widget::CreateWindowWithContextAndBounds(
+ NULL, CurrentContext(), gfx::Rect(610, 10, 100, 100));
+ EXPECT_EQ(Shell::GetAllRootWindows()[1],
+ secondary->GetNativeView()->GetRootWindow());
+ secondary->Show();
+ secondary->Maximize();
+ secondary->Show();
+ secondary->SetFullscreen(true);
+ secondary->Hide();
+ secondary->Close();
+}
+
TEST_F(ScreenAshTest, ConvertRect) {
UpdateDisplay("600x600,500x500");
« no previous file with comments | « ash/screen_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698