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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 WebContents* web_contents = GetInspectedTab(); | 1331 WebContents* web_contents = GetInspectedTab(); |
1332 OpenDevToolsWindow(kLatencyInfoTestPage, false); | 1332 OpenDevToolsWindow(kLatencyInfoTestPage, false); |
1333 DispatchAndWait("startTimeline"); | 1333 DispatchAndWait("startTimeline"); |
1334 | 1334 |
1335 for (int i = 0; i < 3; ++i) { | 1335 for (int i = 0; i < 3; ++i) { |
1336 SimulateMouseEvent(web_contents, blink::WebInputEvent::MouseMove, | 1336 SimulateMouseEvent(web_contents, blink::WebInputEvent::MouseMove, |
1337 gfx::Point(30, 60)); | 1337 gfx::Point(30, 60)); |
1338 DispatchInPageAndWait("waitForEvent", "mousemove"); | 1338 DispatchInPageAndWait("waitForEvent", "mousemove"); |
1339 } | 1339 } |
1340 | 1340 |
1341 SimulateMouseClickAt(web_contents, 0, blink::WebPointerProperties::ButtonLeft, | 1341 SimulateMouseClickAt(web_contents, 0, |
| 1342 blink::WebPointerProperties::Button::Left, |
1342 gfx::Point(30, 60)); | 1343 gfx::Point(30, 60)); |
1343 DispatchInPageAndWait("waitForEvent", "click"); | 1344 DispatchInPageAndWait("waitForEvent", "click"); |
1344 | 1345 |
1345 SimulateMouseWheelEvent(web_contents, gfx::Point(300, 100), | 1346 SimulateMouseWheelEvent(web_contents, gfx::Point(300, 100), |
1346 gfx::Vector2d(0, 120)); | 1347 gfx::Vector2d(0, 120)); |
1347 DispatchInPageAndWait("waitForEvent", "wheel"); | 1348 DispatchInPageAndWait("waitForEvent", "wheel"); |
1348 | 1349 |
1349 SimulateTapAt(web_contents, gfx::Point(30, 60)); | 1350 SimulateTapAt(web_contents, gfx::Point(30, 60)); |
1350 DispatchInPageAndWait("waitForEvent", "gesturetap"); | 1351 DispatchInPageAndWait("waitForEvent", "gesturetap"); |
1351 | 1352 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1440 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true); | 1441 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true); |
1441 chrome::DuplicateTab(browser()); | 1442 chrome::DuplicateTab(browser()); |
1442 chrome::SelectPreviousTab(browser()); | 1443 chrome::SelectPreviousTab(browser()); |
1443 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); | 1444 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); |
1444 chrome::GoBack(browser(), CURRENT_TAB); | 1445 chrome::GoBack(browser(), CURRENT_TAB); |
1445 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); | 1446 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); |
1446 | 1447 |
1447 DevToolsWindowTesting::CloseDevToolsWindowSync(window); | 1448 DevToolsWindowTesting::CloseDevToolsWindowSync(window); |
1448 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); | 1449 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); |
1449 } | 1450 } |
OLD | NEW |