Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: content/browser/webkit_browsertest.cc

Issue 8479031: Revert 108864 - Add a browsertest for bug 75604 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/net/url_request_abort_on_end_job.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webkit_browsertest.cc
===================================================================
--- content/browser/webkit_browsertest.cc (revision 108864)
+++ content/browser/webkit_browsertest.cc (working copy)
@@ -1,36 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/browser.h"
-#include "chrome/test/base/in_process_browser_test.h"
-#include "chrome/test/base/ui_test_utils.h"
-#include "content/browser/net/url_request_abort_on_end_job.h"
-#include "content/browser/tab_contents/tab_contents.h"
-
-typedef InProcessBrowserTest WebKitBrowserTest;
-
-const char kAsyncScriptThatAbortsOnEndPage[] =
- "files/webkit/async_script_abort_on_end.html";
-
-// This is a browser test because it is hard to reproduce reliably in a
-// layout test without races. http://crbug.com/75604 deals with a request
-// for an async script which gets data in the response and immediately
-// after aborts. This test creates that condition, and it is passed
-// if chrome does not crash.
-
-IN_PROC_BROWSER_TEST_F(WebKitBrowserTest, AbortOnEnd) {
- ASSERT_TRUE(test_server()->Start());
- URLRequestAbortOnEndJob::AddUrlHandler();
- GURL url = test_server()->GetURL(kAsyncScriptThatAbortsOnEndPage);
-
- ui_test_utils::NavigateToURL(browser(), url);
-
- TabContents* tab_contents = browser()->GetSelectedTabContents();
- // If you are seeing this test fail, please strongly investigate the
- // possibility that http://crbug.com/75604 and
- // https://bugs.webkit.org/show_bug.cgi?id=71122 have reverted before
- // marking this as flakey.
- EXPECT_FALSE(tab_contents->is_crashed());
-}
-
« no previous file with comments | « content/browser/net/url_request_abort_on_end_job.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698