| Index: content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| diff --git a/content/renderer/browser_plugin/browser_plugin_browsertest.cc b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| index 6d23e0cade9a60e29e69858877d2a91a49377dde..a986f6bb197579147ea60b77974ce630c59b472e 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| @@ -323,4 +323,22 @@ TEST_F(BrowserPluginTest, CustomEvents) {
|
| EXPECT_EQ(kGoogleURL, ExecuteScriptAndReturnString("url"));
|
| }
|
|
|
| +TEST_F(BrowserPluginTest, StopMethod) {
|
| + const char* kCallStop =
|
| + "document.getElementById('browserplugin').stop();";
|
| + LoadHTML(GetHTMLForBrowserPluginObject().c_str());
|
| + ExecuteJavaScript(kCallStop);
|
| + EXPECT_TRUE(browser_plugin_manager()->sink().GetUniqueMessageMatching(
|
| + BrowserPluginHostMsg_Stop::ID));
|
| +}
|
| +
|
| +TEST_F(BrowserPluginTest, ReloadMethod) {
|
| + const char* kCallReload =
|
| + "document.getElementById('browserplugin').reload();";
|
| + LoadHTML(GetHTMLForBrowserPluginObject().c_str());
|
| + ExecuteJavaScript(kCallReload);
|
| + EXPECT_TRUE(browser_plugin_manager()->sink().GetUniqueMessageMatching(
|
| + BrowserPluginHostMsg_Reload::ID));
|
| +}
|
| +
|
| } // namespace content
|
|
|