| 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 6abede33bcf22341eb949a5725ecd01ee6c39a4f..bb0719fec7e410381b0977ccabe9ef5663c79e78 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
| @@ -31,9 +31,6 @@ const char kHTMLForBrowserPluginObject[] =
|
| " src='foo' type='%s'></object>"
|
| "<script>document.querySelector('object').nonExistentAttribute;</script>";
|
|
|
| -const char kHTMLForSourcelessPluginObject[] =
|
| - "<object id='browserplugin' width='640px' height='480px' type='%s'>";
|
| -
|
| std::string GetHTMLForBrowserPluginObject() {
|
| return base::StringPrintf(kHTMLForBrowserPluginObject,
|
| kBrowserPluginMimeType);
|
| @@ -173,33 +170,4 @@ TEST_F(BrowserPluginTest, InitialResize) {
|
| ASSERT_TRUE(browser_plugin);
|
| }
|
|
|
| -TEST_F(BrowserPluginTest, RemovePlugin) {
|
| - LoadHTML(GetHTMLForBrowserPluginObject().c_str());
|
| - MockBrowserPlugin* browser_plugin = GetCurrentPlugin();
|
| - ASSERT_TRUE(browser_plugin);
|
| -
|
| - EXPECT_FALSE(browser_plugin_manager()->sink().GetUniqueMessageMatching(
|
| - BrowserPluginHostMsg_PluginDestroyed::ID));
|
| - ExecuteJavaScript("x = document.getElementById('browserplugin'); "
|
| - "x.parentNode.removeChild(x);");
|
| - ProcessPendingMessages();
|
| - EXPECT_TRUE(browser_plugin_manager()->sink().GetUniqueMessageMatching(
|
| - BrowserPluginHostMsg_PluginDestroyed::ID));
|
| -}
|
| -
|
| -// This test verifies that PluginDestroyed messages do not get sent from a
|
| -// BrowserPlugin that has never navigated.
|
| -TEST_F(BrowserPluginTest, RemovePluginBeforeNavigation) {
|
| - std::string html = base::StringPrintf(kHTMLForSourcelessPluginObject,
|
| - kBrowserPluginMimeType);
|
| - LoadHTML(html.c_str());
|
| - EXPECT_FALSE(browser_plugin_manager()->sink().GetUniqueMessageMatching(
|
| - BrowserPluginHostMsg_PluginDestroyed::ID));
|
| - ExecuteJavaScript("x = document.getElementById('browserplugin'); "
|
| - "x.parentNode.removeChild(x);");
|
| - ProcessPendingMessages();
|
| - EXPECT_FALSE(browser_plugin_manager()->sink().GetUniqueMessageMatching(
|
| - BrowserPluginHostMsg_PluginDestroyed::ID));
|
| -}
|
| -
|
| } // namespace content
|
|
|