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 d860226bfcc8d9542d8bf97ce4dde9e0493a30b4..f990c118ece9a9c1f47ebf8814d662ef5529084e 100644 |
--- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc |
+++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc |
@@ -281,12 +281,18 @@ TEST_F(BrowserPluginTest, GuestCrash) { |
ExecuteJavaScript(kAddEventListener); |
- // Pretend that the guest has crashed |
+ // Pretend that the guest has terminated normally. |
browser_plugin->GuestGone(0, base::TERMINATION_STATUS_NORMAL_TERMINATION); |
// Verify that our event listener has fired. |
EXPECT_EQ("normal", ExecuteScriptAndReturnString("msg")); |
+ // Pretend that the guest has crashed. |
+ browser_plugin->GuestGone(0, base::TERMINATION_STATUS_PROCESS_CRASHED); |
+ |
+ // Verify that our event listener has fired. |
+ EXPECT_EQ("crashed", ExecuteScriptAndReturnString("msg")); |
+ |
// Send an event and verify that events are no longer deported. |
browser_plugin->handleInputEvent(WebKit::WebMouseEvent(), |
cursor_info); |