summaryrefslogtreecommitdiffstats
path: root/content/browser/webkit_browsertest.cc
diff options
context:
space:
mode:
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-07 15:13:24 +0000
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-07 15:13:24 +0000
commitef38d7535141283a49faaceab82efd90bbde8c2e (patch)
tree13e7384ce911d5349d1a3db04d1aab5a67462e1f /content/browser/webkit_browsertest.cc
parent40581e45c75f1493493e52a35c7bbf2221e74735 (diff)
downloadchromium_src-ef38d7535141283a49faaceab82efd90bbde8c2e.zip
chromium_src-ef38d7535141283a49faaceab82efd90bbde8c2e.tar.gz
chromium_src-ef38d7535141283a49faaceab82efd90bbde8c2e.tar.bz2
Revert 108864 - Add a browsertest for bug 75604
This browser test tickles the webkit bug described in crbug.com/75604 . The bug is very hard to repliably reproduce in a layout test, so my plan is to land this browser_test, update webkit to fix the bug, and update this test as we garden past the fix. BUG=75604 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107949 Review URL: http://codereview.chromium.org/8404001 TBR=gavinp@chromium.org Review URL: http://codereview.chromium.org/8479031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/webkit_browsertest.cc')
-rw-r--r--content/browser/webkit_browsertest.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/content/browser/webkit_browsertest.cc b/content/browser/webkit_browsertest.cc
deleted file mode 100644
index 1d6dea8..0000000
--- a/content/browser/webkit_browsertest.cc
+++ /dev/null
@@ -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());
-}
-