Chromium Code Reviews| Index: ash/screen_ash_unittest.cc |
| diff --git a/ash/screen_ash_unittest.cc b/ash/screen_ash_unittest.cc |
| index b00eb54331df9fd32e107493964cd5f6c82f04e7..365db25c4a03ce275ccd9307f138a0cc0cec6aa7 100644 |
| --- a/ash/screen_ash_unittest.cc |
| +++ b/ash/screen_ash_unittest.cc |
| @@ -71,6 +71,20 @@ 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)); |
|
oshima
2013/04/04 08:03:22
check if the secondary is indeed on 2nd display.
E
|
| + secondary->Show(); |
| + secondary->Maximize(); |
| + secondary->Show(); |
| + secondary->SetFullscreen(true); |
| + secondary->Hide(); |
| + secondary->Close(); |
| +} |
| + |
| TEST_F(ScreenAshTest, ConvertRect) { |
| UpdateDisplay("600x600,500x500"); |