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

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: Add CHECK in TextInputController::HasMarkedText() Created 4 years, 5 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 f5d7cb7453dcaee2c073f696237c3056e3424ae8..34c0ccbb09d096ece28c277cc4d7f2a89ce246b9 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -315,7 +315,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()));
}
@@ -336,7 +336,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.
@@ -349,7 +349,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()));
}
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698