| 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 "chrome/browser/ui/panels/old_base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" |
| 6 #include "chrome/browser/ui/panels/detached_panel_strip.h" | 6 #include "chrome/browser/ui/panels/detached_panel_strip.h" |
| 7 #include "chrome/browser/ui/panels/panel.h" | 7 #include "chrome/browser/ui/panels/panel.h" |
| 8 #include "chrome/browser/ui/panels/panel_manager.h" | 8 #include "chrome/browser/ui/panels/panel_manager.h" |
| 9 #include "chrome/browser/ui/panels/panel_resize_controller.h" | 9 #include "chrome/browser/ui/panels/panel_resize_controller.h" |
| 10 | 10 |
| 11 // Panel tests are flaking on linux CQ. http://crbug.com/135377 | |
| 12 #if !defined(OS_LINUX) | |
| 13 | |
| 14 class OldPanelResizeBrowserTest : public OldBasePanelBrowserTest { | 11 class OldPanelResizeBrowserTest : public OldBasePanelBrowserTest { |
| 15 public: | 12 public: |
| 16 OldPanelResizeBrowserTest() : OldBasePanelBrowserTest() { | 13 OldPanelResizeBrowserTest() : OldBasePanelBrowserTest() { |
| 17 } | 14 } |
| 18 | 15 |
| 19 virtual ~OldPanelResizeBrowserTest() { | 16 virtual ~OldPanelResizeBrowserTest() { |
| 20 } | 17 } |
| 21 | 18 |
| 22 virtual void SetUpOnMainThread() OVERRIDE { | 19 virtual void SetUpOnMainThread() OVERRIDE { |
| 23 OldBasePanelBrowserTest::SetUpOnMainThread(); | 20 OldBasePanelBrowserTest::SetUpOnMainThread(); |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 bounds.set_height(bounds.height() + bounds.y() - mouse_location.y()); | 405 bounds.set_height(bounds.height() + bounds.y() - mouse_location.y()); |
| 409 bounds.set_x(mouse_location.x()); | 406 bounds.set_x(mouse_location.x()); |
| 410 bounds.set_y(mouse_location.y()); | 407 bounds.set_y(mouse_location.y()); |
| 411 EXPECT_EQ(bounds, panel->GetBounds()); | 408 EXPECT_EQ(bounds, panel->GetBounds()); |
| 412 | 409 |
| 413 panel_manager->EndResizingByMouse(false); | 410 panel_manager->EndResizingByMouse(false); |
| 414 EXPECT_EQ(bounds, panel->GetBounds()); | 411 EXPECT_EQ(bounds, panel->GetBounds()); |
| 415 | 412 |
| 416 panel_manager->CloseAll(); | 413 panel_manager->CloseAll(); |
| 417 } | 414 } |
| 418 | |
| 419 #endif // !OS_LINUX | |
| OLD | NEW |