| Index: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
|
| index 8b428a7b955ef66d27e21b713dabd6e9e1327156..54b44ad9895716dcb63022d5ff8732ee758197da 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
|
| @@ -372,7 +372,7 @@ TEST_F(WebPluginContainerTest, CopyFromContextMenu) {
|
| event.clickCount = 1;
|
|
|
| // Make sure the right-click + Copy works in common scenario.
|
| - webView->handleInputEvent(event);
|
| + webView->handleInputEvent(WebCoalescedInputEvent(event));
|
| EXPECT_TRUE(webView->mainFrame()->toWebLocalFrame()->executeCommand("Copy"));
|
| EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(
|
| WebClipboard::Buffer()));
|
| @@ -384,7 +384,7 @@ TEST_F(WebPluginContainerTest, CopyFromContextMenu) {
|
|
|
| // Now, let's try a more complex scenario:
|
| // 1) open the context menu. This will focus the plugin.
|
| - webView->handleInputEvent(event);
|
| + webView->handleInputEvent(WebCoalescedInputEvent(event));
|
| // 2) document blurs the plugin, because it can.
|
| webView->clearFocusedElement();
|
| // 3) Copy should still operate on the context node, even though the focus had
|
| @@ -508,7 +508,7 @@ TEST_F(WebPluginContainerTest, GestureLongPressReachesPlugin) {
|
| event.x = 0;
|
| event.y = 0;
|
|
|
| - webView->handleInputEvent(event);
|
| + webView->handleInputEvent(WebCoalescedInputEvent(event));
|
| runPendingTasks();
|
|
|
| EXPECT_EQ(WebInputEvent::Undefined, testPlugin->getLastInputEventType());
|
| @@ -519,7 +519,7 @@ TEST_F(WebPluginContainerTest, GestureLongPressReachesPlugin) {
|
| event.x = rect.x + rect.width / 2;
|
| event.y = rect.y + rect.height / 2;
|
|
|
| - webView->handleInputEvent(event);
|
| + webView->handleInputEvent(WebCoalescedInputEvent(event));
|
| runPendingTasks();
|
|
|
| EXPECT_EQ(WebInputEvent::GestureLongPress,
|
| @@ -557,7 +557,7 @@ TEST_F(WebPluginContainerTest, MouseWheelEventTranslated) {
|
| event.x = rect.x + rect.width / 2;
|
| event.y = rect.y + rect.height / 2;
|
|
|
| - webView->handleInputEvent(event);
|
| + webView->handleInputEvent(WebCoalescedInputEvent(event));
|
| runPendingTasks();
|
|
|
| EXPECT_EQ(WebInputEvent::MouseWheel, testPlugin->getLastInputEventType());
|
|
|