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

Unified Diff: ash/wm/workspace/workspace_window_resizer_unittest.cc

Issue 12746002: Re-implement overscan & Implement Display Rotation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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/wm/workspace/workspace_layout_manager_unittest.cc ('k') | ui/aura/remote_root_window_host_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_window_resizer_unittest.cc
diff --git a/ash/wm/workspace/workspace_window_resizer_unittest.cc b/ash/wm/workspace/workspace_window_resizer_unittest.cc
index d3cf8be3a80b51ef7a385ab8b705ad2ca7a09036..8ffa08821d9475293f6b51279047ef8ca4d283de 100644
--- a/ash/wm/workspace/workspace_window_resizer_unittest.cc
+++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc
@@ -380,9 +380,8 @@ TEST_F(WorkspaceWindowResizerTest, AttachedResize_BOTTOM_2) {
// Assertions around attached window resize dragging from the bottom with 3
// windows.
TEST_F(WorkspaceWindowResizerTest, MAYBE_AttachedResize_BOTTOM_3) {
+ UpdateDisplay("600x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
window_->SetBounds(gfx::Rect( 300, 100, 300, 200));
@@ -1264,9 +1263,8 @@ TEST_F(WorkspaceWindowResizerTest, PhantomSnapMaxSize) {
}
TEST_F(WorkspaceWindowResizerTest, DontRewardRightmostWindowForOverflows) {
+ UpdateDisplay("600x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Four 100x100 windows flush against eachother, starting at 100,100.
@@ -1295,9 +1293,8 @@ TEST_F(WorkspaceWindowResizerTest, DontRewardRightmostWindowForOverflows) {
}
TEST_F(WorkspaceWindowResizerTest, DontExceedMaxWidth) {
+ UpdateDisplay("600x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Four 100x100 windows flush against eachother, starting at 100,100.
@@ -1324,9 +1321,8 @@ TEST_F(WorkspaceWindowResizerTest, DontExceedMaxWidth) {
}
TEST_F(WorkspaceWindowResizerTest, DontExceedMaxHeight) {
+ UpdateDisplay("600x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Four 100x100 windows flush against eachother, starting at 100,100.
@@ -1360,9 +1356,8 @@ TEST_F(WorkspaceWindowResizerTest, DontExceedMaxHeight) {
#endif
TEST_F(WorkspaceWindowResizerTest, MAYBE_DontExceedMinHeight) {
+ UpdateDisplay("600x500");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 500));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Four 100x100 windows flush against eachother, starting at 100,100.
@@ -1389,9 +1384,8 @@ TEST_F(WorkspaceWindowResizerTest, MAYBE_DontExceedMinHeight) {
}
TEST_F(WorkspaceWindowResizerTest, DontExpandRightmostPastMaxWidth) {
+ UpdateDisplay("600x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Three 100x100 windows flush against eachother, starting at 100,100.
@@ -1415,9 +1409,8 @@ TEST_F(WorkspaceWindowResizerTest, DontExpandRightmostPastMaxWidth) {
}
TEST_F(WorkspaceWindowResizerTest, MoveAttachedWhenGrownToMaxSize) {
+ UpdateDisplay("600x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(600, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Three 100x100 windows flush against eachother, starting at 100,100.
@@ -1449,9 +1442,8 @@ TEST_F(WorkspaceWindowResizerTest, MoveAttachedWhenGrownToMaxSize) {
#endif
TEST_F(WorkspaceWindowResizerTest, MAYBE_MainWindowHonoursMaxWidth) {
+ UpdateDisplay("400x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(400, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Three 100x100 windows flush against eachother, starting at 100,100.
@@ -1476,9 +1468,8 @@ TEST_F(WorkspaceWindowResizerTest, MAYBE_MainWindowHonoursMaxWidth) {
}
TEST_F(WorkspaceWindowResizerTest, MainWindowHonoursMinWidth) {
+ UpdateDisplay("400x800");
aura::RootWindow* root = Shell::GetPrimaryRootWindow();
- root->SetHostSize(gfx::Size(400, 800));
-
Shell::GetInstance()->SetDisplayWorkAreaInsets(root, gfx::Insets());
// Three 100x100 windows flush against eachother, starting at 100,100.
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | ui/aura/remote_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698