summaryrefslogtreecommitdiffstats
path: root/ash/wm/mru_window_tracker_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/mru_window_tracker_unittest.cc')
-rw-r--r--ash/wm/mru_window_tracker_unittest.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/ash/wm/mru_window_tracker_unittest.cc b/ash/wm/mru_window_tracker_unittest.cc
index 4aff599..a7bec73 100644
--- a/ash/wm/mru_window_tracker_unittest.cc
+++ b/ash/wm/mru_window_tracker_unittest.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "ash/shell.h"
-#include "ash/shell_window_ids.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/test_shelf_delegate.h"
#include "ash/wm/mru_window_tracker.h"
@@ -12,7 +11,6 @@
#include "base/compiler_specific.h"
#include "ui/aura/test/test_window_delegate.h"
#include "ui/aura/window.h"
-#include "ui/base/hit_test.h"
#include "ui/views/widget/widget.h"
namespace ash {
@@ -82,25 +80,4 @@ TEST_F(MruWindowTrackerTest, MinimizedWindowsAreLru) {
EXPECT_EQ(w5.get(), window_list[5]);
}
-// Tests that windows being dragged are only in the WindowList once.
-TEST_F(MruWindowTrackerTest, DraggedWindowsInListOnlyOnce) {
- scoped_ptr<aura::Window> w1(CreateWindow());
- wm::ActivateWindow(w1.get());
-
- // Start dragging the window.
- wm::GetWindowState(w1.get())->CreateDragDetails(
- w1.get(), gfx::Point(), HTRIGHT, aura::client::WINDOW_MOVE_SOURCE_TOUCH);
-
- // During a drag the window is reparented by the Docked container.
- aura::Window* drag_container = Shell::GetContainer(
- Shell::GetTargetRootWindow(), kShellWindowId_DockedContainer);
- drag_container->AddChild(w1.get());
- EXPECT_TRUE(wm::GetWindowState(w1.get())->is_dragged());
-
- // The dragged window should only be in the list once.
- MruWindowTracker::WindowList window_list =
- mru_window_tracker()->BuildWindowListIgnoreModal();
- EXPECT_EQ(1, std::count(window_list.begin(), window_list.end(), w1.get()));
-}
-
} // namespace ash