| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 GetInspectedTab(), false); | 803 GetInspectedTab(), false); |
| 804 | 804 |
| 805 OpenDevToolsPopupWindow(devtools_window); | 805 OpenDevToolsPopupWindow(devtools_window); |
| 806 CloseDevToolsPopupWindow(devtools_window); | 806 CloseDevToolsPopupWindow(devtools_window); |
| 807 } | 807 } |
| 808 | 808 |
| 809 // Tests that BeforeUnload event gets called on devtools that are opened | 809 // Tests that BeforeUnload event gets called on devtools that are opened |
| 810 // on another devtools. | 810 // on another devtools. |
| 811 // Disabled because of http://crbug.com/497857 | 811 // Disabled because of http://crbug.com/497857 |
| 812 IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest, | 812 IN_PROC_BROWSER_TEST_F(DevToolsBeforeUnloadTest, |
| 813 DISABLED_TestDevToolsOnDevTools) { | 813 TestDevToolsOnDevTools) { |
| 814 ASSERT_TRUE(spawned_test_server()->Start()); | 814 ASSERT_TRUE(spawned_test_server()->Start()); |
| 815 LoadTestPage(kDebuggerTestPage); | 815 LoadTestPage(kDebuggerTestPage); |
| 816 | 816 |
| 817 std::vector<DevToolsWindow*> windows; | 817 std::vector<DevToolsWindow*> windows; |
| 818 std::vector<content::WindowedNotificationObserver*> close_observers; | 818 std::vector<content::WindowedNotificationObserver*> close_observers; |
| 819 content::WebContents* inspected_web_contents = GetInspectedTab(); | 819 content::WebContents* inspected_web_contents = GetInspectedTab(); |
| 820 for (int i = 0; i < 3; ++i) { | 820 for (int i = 0; i < 3; ++i) { |
| 821 DevToolsWindow* devtools_window = OpenDevToolWindowOnWebContents( | 821 DevToolsWindow* devtools_window = OpenDevToolWindowOnWebContents( |
| 822 inspected_web_contents, i == 0); | 822 inspected_web_contents, i == 0); |
| 823 windows.push_back(devtools_window); | 823 windows.push_back(devtools_window); |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 | 1333 |
| 1334 SimulateTapAt(web_contents, gfx::Point(30, 60)); | 1334 SimulateTapAt(web_contents, gfx::Point(30, 60)); |
| 1335 DispatchInPageAndWait("waitForEvent", "gesturetap"); | 1335 DispatchInPageAndWait("waitForEvent", "gesturetap"); |
| 1336 | 1336 |
| 1337 DispatchAndWait("stopTimeline"); | 1337 DispatchAndWait("stopTimeline"); |
| 1338 RunTestMethod("checkInputEventsPresent", "MouseMove", "MouseDown", | 1338 RunTestMethod("checkInputEventsPresent", "MouseMove", "MouseDown", |
| 1339 "MouseWheel", "GestureTap"); | 1339 "MouseWheel", "GestureTap"); |
| 1340 | 1340 |
| 1341 CloseDevToolsWindow(); | 1341 CloseDevToolsWindow(); |
| 1342 } | 1342 } |
| OLD | NEW |