summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-28 21:26:59 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-28 21:26:59 +0000
commit7b7261bc047e509d70abcf42d9c588fe0438ccbe (patch)
tree7c507a7b42c8c0fec7c5923414fb15da52b7db31 /chrome
parentaf93fd9ac4b3702ee14c2b13b79af43c335ade79 (diff)
downloadchromium_src-7b7261bc047e509d70abcf42d9c588fe0438ccbe.zip
chromium_src-7b7261bc047e509d70abcf42d9c588fe0438ccbe.tar.gz
chromium_src-7b7261bc047e509d70abcf42d9c588fe0438ccbe.tar.bz2
Run the unload tests in single process mode, after my fix to single process mode.
BUG=7933 Review URL: http://codereview.chromium.org/27311 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10680 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/unload_uitest.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/chrome/browser/unload_uitest.cc b/chrome/browser/unload_uitest.cc
index 947a2a5..3089e82 100644
--- a/chrome/browser/unload_uitest.cc
+++ b/chrome/browser/unload_uitest.cc
@@ -246,11 +246,6 @@ TEST_F(UnloadTest, BrowserCloseBeforeUnloadCancel) {
// Tests closing the browser with a beforeunload handler that takes
// two seconds to run.
TEST_F(UnloadTest, BrowserCloseTwoSecondBeforeUnload) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(TWO_SECOND_BEFORE_UNLOAD_HTML,
L"twosecondbeforeunload");
}
@@ -258,43 +253,23 @@ TEST_F(UnloadTest, BrowserCloseTwoSecondBeforeUnload) {
// Tests closing the browser on a page with an unload listener registered where
// the unload handler has an infinite loop.
TEST_F(UnloadTest, BrowserCloseInfiniteUnload) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(INFINITE_UNLOAD_HTML, L"infiniteunload");
}
// Tests closing the browser with a beforeunload handler that hangs.
TEST_F(UnloadTest, BrowserCloseInfiniteBeforeUnload) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(INFINITE_BEFORE_UNLOAD_HTML, L"infinitebeforeunload");
}
// Tests closing the browser on a page with an unload listener registered where
// the unload handler has an infinite loop followed by an alert.
TEST_F(UnloadTest, BrowserCloseInfiniteUnloadAlert) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(INFINITE_UNLOAD_ALERT_HTML, L"infiniteunloadalert");
}
// Tests closing the browser with a beforeunload handler that hangs then
// pops up an alert.
TEST_F(UnloadTest, BrowserCloseInfiniteBeforeUnloadAlert) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(INFINITE_BEFORE_UNLOAD_ALERT_HTML,
L"infinitebeforeunloadalert");
}
@@ -302,22 +277,12 @@ TEST_F(UnloadTest, BrowserCloseInfiniteBeforeUnloadAlert) {
// Tests closing the browser on a page with an unload listener registered where
// the unload handler has an 2 second long loop followed by an alert.
TEST_F(UnloadTest, BrowserCloseTwoSecondUnloadAlert) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(TWO_SECOND_UNLOAD_ALERT_HTML, L"twosecondunloadalert");
}
// Tests closing the browser with a beforeunload handler that takes
// two seconds to run then pops up an alert.
TEST_F(UnloadTest, BrowserCloseTwoSecondBeforeUnloadAlert) {
- // TODO(jabdelmalek): BUG(7933) this started hanging now, should it be
- // disabled in single process mode like the other tests?
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
- return;
-
LoadUrlAndQuitBrowser(TWO_SECOND_BEFORE_UNLOAD_ALERT_HTML,
L"twosecondbeforeunloadalert");
}