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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances 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, blink::WebPointerProperties::ButtonLeft, 1340 SimulateMouseClickAt(web_contents, 0,
1341 blink::WebPointerProperties::Button::Left,
1341 gfx::Point(30, 60)); 1342 gfx::Point(30, 60));
1342 DispatchInPageAndWait("waitForEvent", "click"); 1343 DispatchInPageAndWait("waitForEvent", "click");
1343 1344
1344 SimulateMouseWheelEvent(web_contents, gfx::Point(300, 100), 1345 SimulateMouseWheelEvent(web_contents, gfx::Point(300, 100),
1345 gfx::Vector2d(0, 120)); 1346 gfx::Vector2d(0, 120));
1346 DispatchInPageAndWait("waitForEvent", "wheel"); 1347 DispatchInPageAndWait("waitForEvent", "wheel");
1347 1348
1348 SimulateTapAt(web_contents, gfx::Point(30, 60)); 1349 SimulateTapAt(web_contents, gfx::Point(30, 60));
1349 DispatchInPageAndWait("waitForEvent", "gesturetap"); 1350 DispatchInPageAndWait("waitForEvent", "gesturetap");
1350 1351
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true); 1440 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true);
1440 chrome::DuplicateTab(browser()); 1441 chrome::DuplicateTab(browser());
1441 chrome::SelectPreviousTab(browser()); 1442 chrome::SelectPreviousTab(browser());
1442 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); 1443 ui_test_utils::NavigateToURL(browser(), GURL("about:blank"));
1443 chrome::GoBack(browser(), CURRENT_TAB); 1444 chrome::GoBack(browser(), CURRENT_TAB);
1444 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); 1445 RunTestFunction(window, "testWindowInitializedOnNavigateBack");
1445 1446
1446 DevToolsWindowTesting::CloseDevToolsWindowSync(window); 1447 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
1447 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); 1448 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory);
1448 } 1449 }
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