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

Issue 8376001: UI test for browser termination with beforeunload handler. (Closed)

Created:
9 years, 2 months ago by achuithb
Modified:
9 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

UI test for browser termination with beforeunload handler and some cleanup. This test will pass only after http://codereview.chromium.org/8262009 lands. * Rename CloseAllBrowsersAndExitPosted to ExitPosted. * Add VerifyCleanExit to UITest, code which existed in BrowserTest.SessionEnd. * Move ui tests in browser_uitest.cc to non-anonymous namespace; the test names need to be unique. * Create UnloadTest.BrowserTerminateBeforeUnload which sets up onbeforeunload handler and sends a SIGTERM. BUG=chromium-os:21961 TEST=UnloadTest.BrowserTerminateBeforeUnload passes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107163

Patch Set 1 #

Patch Set 2 : add pref_names.* #

Patch Set 3 : Revert app terminating notification test #

Total comments: 4

Patch Set 4 : Add TODO for crbug.com/101390, and rebase #

Patch Set 5 : BrowserTestBeforeUnload only for cros #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -33 lines) Patch
M chrome/browser/chrome_browser_main_posix.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/tests/browser_uitest.cc View 1 2 3 4 3 chunks +6 lines, -31 lines 0 comments Download
M chrome/browser/unload_uitest.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
achuithb
Oshima-san, please take a look. I'm not happy with the changes to pref_names.* and browser_list.cc. ...
9 years, 2 months ago (2011-10-23 00:47:14 UTC) #1
achuithb
Oshima-san, ignore my last comment. I've removed the hacky test for app terminating notification. The ...
9 years, 2 months ago (2011-10-23 01:09:56 UTC) #2
achuithb
Dave, please take a look at your convenience.
9 years, 2 months ago (2011-10-23 01:10:34 UTC) #3
DaveMoore
lgtm. Thanks for taking this on. It'll give us better coverage on all platforms.
9 years, 2 months ago (2011-10-23 19:46:40 UTC) #4
achuithb
Thanks for the review, Dave. We lucked out that there were existing ui tests for ...
9 years, 2 months ago (2011-10-23 21:05:03 UTC) #5
Paweł Hajdan Jr.
Drive-by, chrome/test/OWNERS here and you must get positive review *before* committing. I'm happy to see ...
9 years, 2 months ago (2011-10-24 07:32:51 UTC) #6
achuithb
http://codereview.chromium.org/8376001/diff/9002/chrome/test/ui/ui_test.cc File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/8376001/diff/9002/chrome/test/ui/ui_test.cc#newcode806 chrome/test/ui/ui_test.cc:806: // Make sure the UMA metrics say we didn't ...
9 years, 2 months ago (2011-10-24 10:12:39 UTC) #7
Paweł Hajdan Jr.
LGTM with notes. http://codereview.chromium.org/8376001/diff/9002/chrome/test/ui/ui_test.cc File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/8376001/diff/9002/chrome/test/ui/ui_test.cc#newcode806 chrome/test/ui/ui_test.cc:806: // Make sure the UMA metrics ...
9 years, 2 months ago (2011-10-24 12:32:14 UTC) #8
oshima
Awesome, LGTM. I'll let you know when my change lands.
9 years, 2 months ago (2011-10-24 16:20:39 UTC) #9
achuithb
Thanks for the reviews http://codereview.chromium.org/8376001/diff/9002/chrome/test/ui/ui_test.cc File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/8376001/diff/9002/chrome/test/ui/ui_test.cc#newcode806 chrome/test/ui/ui_test.cc:806: // Make sure the UMA ...
9 years, 2 months ago (2011-10-24 18:57:18 UTC) #10
achuithb
Oshima's CL has landed: http://crrev.com/106988 I've had to make another change to this patch. Oshima's ...
9 years, 2 months ago (2011-10-25 00:31:19 UTC) #11
Paweł Hajdan Jr.
9 years, 2 months ago (2011-10-25 09:00:25 UTC) #12
LGTM

Powered by Google App Engine
This is Rietveld 408576698