This source file includes following definitions.
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "content/test/net/url_request_abort_on_end_job.h"
namespace content {
typedef ContentBrowserTest WebKitBrowserTest;
const char kAsyncScriptThatAbortsOnEndPage[] =
"files/webkit/async_script_abort_on_end.html";
IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, AbortOnEnd) {
ASSERT_TRUE(test_server()->Start());
URLRequestAbortOnEndJob::AddUrlHandler();
GURL url = test_server()->GetURL(kAsyncScriptThatAbortsOnEndPage);
NavigateToURL(shell(), url);
EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}
const char kXsltBadImportPage[] =
"files/webkit/xslt-bad-import.html";
IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, XsltBadImport) {
ASSERT_TRUE(test_server()->Start());
URLRequestAbortOnEndJob::AddUrlHandler();
GURL url = test_server()->GetURL(kXsltBadImportPage);
NavigateToURL(shell(), url);
EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}
const char kPrerenderNoCrashPage[] =
"files/prerender/prerender-no-crash.html";
IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, PrerenderNoCrash) {
ASSERT_TRUE(test_server()->Start());
GURL url = test_server()->GetURL(kPrerenderNoCrashPage);
NavigateToURL(shell(), url);
EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}
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());
}
}