| 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 b69327a7f52ea1a6b76107a139bfb1c659756156..bd028d124b67895add79e387ab2dc5b08ea1befa 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
|
| @@ -313,7 +313,7 @@ TEST_F(WebPluginContainerTest, Copy)
|
| runPendingTasks();
|
|
|
| webView->mainFrame()->document().unwrap<Document>()->body()->getElementById("translated-plugin")->focus();
|
| - EXPECT_TRUE(webView->mainFrame()->executeCommand("Copy"));
|
| + EXPECT_TRUE(webView->mainFrame()->toWebLocalFrame()->executeCommand("Copy"));
|
| EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(WebClipboard::Buffer()));
|
| }
|
|
|
| @@ -334,7 +334,7 @@ TEST_F(WebPluginContainerTest, CopyFromContextMenu)
|
|
|
| // Make sure the right-click + Copy works in common scenario.
|
| webView->handleInputEvent(event);
|
| - EXPECT_TRUE(webView->mainFrame()->executeCommand("Copy"));
|
| + EXPECT_TRUE(webView->mainFrame()->toWebLocalFrame()->executeCommand("Copy"));
|
| EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(WebClipboard::Buffer()));
|
|
|
| // Clear the clipboard buffer.
|
| @@ -347,7 +347,7 @@ TEST_F(WebPluginContainerTest, CopyFromContextMenu)
|
| // 2) document blurs the plugin, because it can.
|
| webView->clearFocusedElement();
|
| // 3) Copy should still operate on the context node, even though the focus had shifted.
|
| - EXPECT_TRUE(webView->mainFrame()->executeCommand("Copy"));
|
| + EXPECT_TRUE(webView->mainFrame()->toWebLocalFrame()->executeCommand("Copy"));
|
| EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(WebClipboard::Buffer()));
|
| }
|
|
|
|
|