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

Unified Diff: ui/aura/toplevel_window_event_filter_unittest.cc

Issue 8400063: Move maximize/fullscreen/restore to shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OVERRIDE from .cc Created 9 years, 2 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 | « ui/aura/toplevel_window_event_filter.cc ('k') | ui/aura/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/toplevel_window_event_filter_unittest.cc
diff --git a/ui/aura/toplevel_window_event_filter_unittest.cc b/ui/aura/toplevel_window_event_filter_unittest.cc
index 18908da82871a4c93c7ccc5ee1eda448154fa6de..ad8050fbd13e930ac562cf2d2c902a02386d7ca7 100644
--- a/ui/aura/toplevel_window_event_filter_unittest.cc
+++ b/ui/aura/toplevel_window_event_filter_unittest.cc
@@ -196,31 +196,5 @@ TEST_F(ToplevelWindowEventFilterTest, Client) {
EXPECT_EQ(bounds, w1->bounds());
}
-TEST_F(ToplevelWindowEventFilterTest, Maximized) {
- scoped_ptr<Window> w1(CreateWindow(HTCLIENT));
- gfx::Rect workarea = gfx::Screen::GetMonitorWorkAreaNearestWindow(w1.get());
- // Maximized window cannot be dragged.
- gfx::Rect original_bounds = w1->bounds();
- w1->Maximize();
- EXPECT_EQ(workarea, w1->bounds());
- DragFromCenterBy(w1.get(), 100, 100);
- EXPECT_EQ(workarea, w1->bounds());
- w1->Restore();
- EXPECT_EQ(original_bounds, w1->bounds());
-}
-
-TEST_F(ToplevelWindowEventFilterTest, Fullscreen) {
- scoped_ptr<Window> w1(CreateWindow(HTCLIENT));
- gfx::Rect monitor = gfx::Screen::GetMonitorAreaNearestWindow(w1.get());
- // Fullscreen window cannot be dragged.
- gfx::Rect original_bounds = w1->bounds();
- w1->Fullscreen();
- EXPECT_EQ(monitor, w1->bounds());
- DragFromCenterBy(w1.get(), 100, 100);
- EXPECT_EQ(monitor, w1->bounds());
- w1->Restore();
- EXPECT_EQ(original_bounds, w1->bounds());
-}
-
} // namespace test
} // namespace aura
« no previous file with comments | « ui/aura/toplevel_window_event_filter.cc ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698