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

Unified Diff: third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp

Issue 1654653002: Canvas2d: Implement rerouting event by hit region's control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot errors Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp b/third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp
index 773ebabefb80782505eef4088e6bf37ef041cbd7..2b913449bb1ec15ab7d65e9f7a2fab6e14b46781 100644
--- a/third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp
+++ b/third_party/WebKit/Source/core/page/ContextMenuControllerTest.cpp
@@ -69,7 +69,8 @@ TEST_F(ContextMenuControllerTest, TestCustomMenu)
// Create right button click event and pass it to context menu controller.
RefPtrWillBeRawPtr<Event> event = MouseEvent::create(EventTypeNames::click, false, false,
- document().domWindow(), 50, 50, 0, 0, 0, 0, 0, PlatformEvent::NoModifiers, 1, 0, nullptr, 0);
+ document().domWindow(), 50, 50, 0, 0, 0, 0, 0, PlatformEvent::NoModifiers, 1, 0, nullptr, 0,
+ PlatformMouseEvent::RealOrIndistinguishable, String());
document().getElementById("button_id")->focus();
event->setTarget(document().getElementById("button_id"));
document().page()->contextMenuController().handleContextMenuEvent(event.get());

Powered by Google App Engine
This is Rietveld 408576698