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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" | 6 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" |
7 #include "chrome/browser/ui/panels/detached_panel_strip.h" | 7 #include "chrome/browser/ui/panels/detached_panel_strip.h" |
8 #include "chrome/browser/ui/panels/docked_panel_strip.h" | 8 #include "chrome/browser/ui/panels/docked_panel_strip.h" |
9 #include "chrome/browser/ui/panels/native_panel.h" | 9 #include "chrome/browser/ui/panels/native_panel.h" |
10 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
11 #include "chrome/browser/ui/panels/panel_drag_controller.h" | 11 #include "chrome/browser/ui/panels/panel_drag_controller.h" |
12 #include "chrome/browser/ui/panels/panel_manager.h" | 12 #include "chrome/browser/ui/panels/panel_manager.h" |
13 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" | 13 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" |
14 | 14 |
15 // Panel tests are flaking on linux CQ. http://crbug.com/135377 | |
16 #if !defined(OS_LINUX) | |
17 | |
18 class OldPanelDragBrowserTest : public OldBasePanelBrowserTest { | 15 class OldPanelDragBrowserTest : public OldBasePanelBrowserTest { |
19 public: | 16 public: |
20 OldPanelDragBrowserTest() : OldBasePanelBrowserTest() { | 17 OldPanelDragBrowserTest() : OldBasePanelBrowserTest() { |
21 } | 18 } |
22 | 19 |
23 virtual ~OldPanelDragBrowserTest() { | 20 virtual ~OldPanelDragBrowserTest() { |
24 } | 21 } |
25 | 22 |
26 virtual void SetUpOnMainThread() OVERRIDE { | 23 virtual void SetUpOnMainThread() OVERRIDE { |
27 OldBasePanelBrowserTest::SetUpOnMainThread(); | 24 OldBasePanelBrowserTest::SetUpOnMainThread(); |
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 | 1340 |
1344 // Drag down the panel. Expect that the panel can be dragged without | 1341 // Drag down the panel. Expect that the panel can be dragged without |
1345 // constraint. | 1342 // constraint. |
1346 drag_to_location = gfx::Point(280, 150); | 1343 drag_to_location = gfx::Point(280, 150); |
1347 DragPanelToMouseLocation(panel, drag_to_location); | 1344 DragPanelToMouseLocation(panel, drag_to_location); |
1348 EXPECT_EQ(PanelStrip::DETACHED, panel->panel_strip()->type()); | 1345 EXPECT_EQ(PanelStrip::DETACHED, panel->panel_strip()->type()); |
1349 EXPECT_EQ(drag_to_location, panel->GetBounds().origin()); | 1346 EXPECT_EQ(drag_to_location, panel->GetBounds().origin()); |
1350 | 1347 |
1351 panel_manager->CloseAll(); | 1348 panel_manager->CloseAll(); |
1352 } | 1349 } |
1353 | |
1354 #endif // !OS_LINUX | |
OLD | NEW |