EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}
-// This is a browser test because DumpRenderTree doesn't run nested message
-// loops. The failure case was that a nested message triggered from an element
-// that has signalled an error but had an open request would receive a body for
-// the request and crash/fail an assertion.
-const char kErrorBodyNoCrash[] =
- "files/error-body-no-crash.html";
-IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, ErrorBodyNoCrash) {
- ASSERT_TRUE(test_server()->Start());
- GURL url = test_server()->GetURL(kErrorBodyNoCrash);
-
- NavigateToURL(shell(), url);
-
- EXPECT_FALSE(shell()->web_contents()->IsCrashed());
-}
-
} // namespace content