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

Unified Diff: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp

Issue 2012823003: Move IME related functions from WebFrame to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 6 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/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()));
}

Powered by Google App Engine
This is Rietveld 408576698