OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/wm/workspace/workspace_layout_manager.h" | 5 #include "ash/common/wm/workspace/workspace_layout_manager.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/shell_observer.h" | 10 #include "ash/common/shell_observer.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 DISALLOW_COPY_AND_ASSIGN(FullscreenObserver); | 74 DISALLOW_COPY_AND_ASSIGN(FullscreenObserver); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace | 77 } // namespace |
78 | 78 |
79 using WorkspaceLayoutManagerTest = WmTestBase; | 79 using WorkspaceLayoutManagerTest = WmTestBase; |
80 | 80 |
81 // Verifies that a window containing a restore coordinate will be restored to | 81 // Verifies that a window containing a restore coordinate will be restored to |
82 // to the size prior to minimize, keeping the restore rectangle in tact (if | 82 // to the size prior to minimize, keeping the restore rectangle in tact (if |
83 // there is one). | 83 // there is one). |
84 // TODO: disabled because of http://crbug.com/615552. | 84 TEST_F(WorkspaceLayoutManagerTest, RestoreFromMinimizeKeepsRestore) { |
85 TEST_F(WorkspaceLayoutManagerTest, DISABLED_RestoreFromMinimizeKeepsRestore) { | |
86 ui::Window* mus_window = CreateTestWindow(gfx::Rect(1, 2, 3, 4)); | 85 ui::Window* mus_window = CreateTestWindow(gfx::Rect(1, 2, 3, 4)); |
87 WmWindow* window = WmWindowMus::Get(mus_window); | 86 WmWindow* window = WmWindowMus::Get(mus_window); |
88 WmWindowMusTestApi(window).set_use_empty_minimum_size(true); | 87 WmWindowMusTestApi(window).set_use_empty_minimum_size(true); |
89 gfx::Rect bounds(10, 15, 25, 35); | 88 gfx::Rect bounds(10, 15, 25, 35); |
90 window->SetBounds(bounds); | 89 window->SetBounds(bounds); |
91 | 90 |
92 wm::WindowState* window_state = window->GetWindowState(); | 91 wm::WindowState* window_state = window->GetWindowState(); |
93 | 92 |
94 // This will not be used for un-minimizing window. | 93 // This will not be used for un-minimizing window. |
95 window_state->SetRestoreBoundsInScreen(gfx::Rect(0, 0, 100, 100)); | 94 window_state->SetRestoreBoundsInScreen(gfx::Rect(0, 0, 100, 100)); |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 occluded_window_bounds.width(), | 1091 occluded_window_bounds.width(), |
1093 occluded_window_bounds.height()).ToString(), | 1092 occluded_window_bounds.height()).ToString(), |
1094 window->bounds().ToString()); | 1093 window->bounds().ToString()); |
1095 HideKeyboard(); | 1094 HideKeyboard(); |
1096 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); | 1095 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); |
1097 } | 1096 } |
1098 */ | 1097 */ |
1099 | 1098 |
1100 } // namespace mus | 1099 } // namespace mus |
1101 } // namespace ash | 1100 } // namespace ash |
OLD | NEW |