Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Side by Side Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 2245063006: Revert of Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix patch apply Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 WebContents* web_contents = GetInspectedTab(); 1330 WebContents* web_contents = GetInspectedTab();
1331 OpenDevToolsWindow(kLatencyInfoTestPage, false); 1331 OpenDevToolsWindow(kLatencyInfoTestPage, false);
1332 DispatchAndWait("startTimeline"); 1332 DispatchAndWait("startTimeline");
1333 1333
1334 for (int i = 0; i < 3; ++i) { 1334 for (int i = 0; i < 3; ++i) {
1335 SimulateMouseEvent(web_contents, blink::WebInputEvent::MouseMove, 1335 SimulateMouseEvent(web_contents, blink::WebInputEvent::MouseMove,
1336 gfx::Point(30, 60)); 1336 gfx::Point(30, 60));
1337 DispatchInPageAndWait("waitForEvent", "mousemove"); 1337 DispatchInPageAndWait("waitForEvent", "mousemove");
1338 } 1338 }
1339 1339
1340 SimulateMouseClickAt(web_contents, 0, 1340 SimulateMouseClickAt(web_contents, 0, blink::WebPointerProperties::ButtonLeft,
1341 blink::WebPointerProperties::Button::Left,
1342 gfx::Point(30, 60)); 1341 gfx::Point(30, 60));
1343 DispatchInPageAndWait("waitForEvent", "click"); 1342 DispatchInPageAndWait("waitForEvent", "click");
1344 1343
1345 SimulateMouseWheelEvent(web_contents, gfx::Point(300, 100), 1344 SimulateMouseWheelEvent(web_contents, gfx::Point(300, 100),
1346 gfx::Vector2d(0, 120)); 1345 gfx::Vector2d(0, 120));
1347 DispatchInPageAndWait("waitForEvent", "wheel"); 1346 DispatchInPageAndWait("waitForEvent", "wheel");
1348 1347
1349 SimulateTapAt(web_contents, gfx::Point(30, 60)); 1348 SimulateTapAt(web_contents, gfx::Point(30, 60));
1350 DispatchInPageAndWait("waitForEvent", "gesturetap"); 1349 DispatchInPageAndWait("waitForEvent", "gesturetap");
1351 1350
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true); 1439 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true);
1441 chrome::DuplicateTab(browser()); 1440 chrome::DuplicateTab(browser());
1442 chrome::SelectPreviousTab(browser()); 1441 chrome::SelectPreviousTab(browser());
1443 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); 1442 ui_test_utils::NavigateToURL(browser(), GURL("about:blank"));
1444 chrome::GoBack(browser(), CURRENT_TAB); 1443 chrome::GoBack(browser(), CURRENT_TAB);
1445 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); 1444 RunTestFunction(window, "testWindowInitializedOnNavigateBack");
1446 1445
1447 DevToolsWindowTesting::CloseDevToolsWindowSync(window); 1446 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
1448 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); 1447 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory);
1449 } 1448 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/textinput_test_helper.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698