Index: ash/wm/window_state_unittest.cc |
diff --git a/ash/wm/window_state_unittest.cc b/ash/wm/window_state_unittest.cc |
index cef8fbbe25304830a70be20b3c77c78a07f013b6..6450daa63712116537577c6cabbf7044fe579220 100644 |
--- a/ash/wm/window_state_unittest.cc |
+++ b/ash/wm/window_state_unittest.cc |
@@ -9,6 +9,7 @@ |
#include "ash/test/ash_test_base.h" |
#include "ash/wm/window_state.h" |
#include "ash/wm/wm_event.h" |
+#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/test/test_window_delegate.h" |
#include "ui/aura/window.h" |
@@ -124,9 +125,8 @@ TEST_F(WindowStateTest, SnapWindowMinimumSize) { |
kWorkAreaBounds.height()); |
EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString()); |
- // It should not be possible to snap a window with a maximum size. |
- delegate.set_minimum_size(gfx::Size()); |
oshima
2014/09/10 15:59:32
and keep this scenario.
jackhou1
2014/09/11 00:16:54
Done.
|
- delegate.set_maximum_size(gfx::Size(kWorkAreaBounds.width() - 1, INT_MAX)); |
+ // It should not be possible to snap a window that cannot maximize. |
+ window->SetProperty(aura::client::kCanMaximizeKey, false); |
EXPECT_FALSE(window_state->CanSnap()); |
} |