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

Issue 8372042: Tests for WebUI Hung Renderer Dialog (Closed)

Created:
9 years, 1 month ago by wyck
Modified:
9 years, 1 month ago
Reviewers:
flackr
CC:
chromium-reviews, arv (Not doing code reviews), Paweł Hajdan Jr.
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Tests for WebUI Hung Renderer Dialog This CL adds a WebUIBrowserTest to test the WebUI Hung Renderer Dialog. BUG=102073 TEST=browser_tests HungRendererDialogUITest.testHungRenderer Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108924

Patch Set 1 : self review #

Patch Set 2 : more self review #

Total comments: 4

Patch Set 3 : After flackr's review #

Total comments: 1

Patch Set 4 : removed async fixture as per review #

Patch Set 5 : fixed reversion issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -27 lines) Patch
M chrome/browser/resources/hung_renderer_dialog.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.h View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.cc View 1 2 3 4 4 chunks +27 lines, -23 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/webui/hung_renderer_dialog_test.js View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
wyck
Note: This doesn't include an integration test for killing a tab, because scr@ and I ...
9 years, 1 month ago (2011-11-04 20:15:24 UTC) #1
flackr
http://codereview.chromium.org/8372042/diff/6001/chrome/test/data/webui/hung_renderer_dialog_test.js File chrome/test/data/webui/hung_renderer_dialog_test.js (right): http://codereview.chromium.org/8372042/diff/6001/chrome/test/data/webui/hung_renderer_dialog_test.js#newcode53 chrome/test/data/webui/hung_renderer_dialog_test.js:53: assertGT(themeGraphic.width, 0); Use expect for checks that aren't fatal. ...
9 years, 1 month ago (2011-11-05 13:19:39 UTC) #2
wyck
Split out the tests anyway as per your wisdom. http://codereview.chromium.org/8372042/diff/6001/chrome/test/data/webui/hung_renderer_dialog_test.js File chrome/test/data/webui/hung_renderer_dialog_test.js (right): http://codereview.chromium.org/8372042/diff/6001/chrome/test/data/webui/hung_renderer_dialog_test.js#newcode54 chrome/test/data/webui/hung_renderer_dialog_test.js:54: ...
9 years, 1 month ago (2011-11-07 20:39:24 UTC) #3
flackr
LGTM http://codereview.chromium.org/8372042/diff/6001/chrome/test/data/webui/hung_renderer_dialog_test.js File chrome/test/data/webui/hung_renderer_dialog_test.js (right): http://codereview.chromium.org/8372042/diff/6001/chrome/test/data/webui/hung_renderer_dialog_test.js#newcode54 chrome/test/data/webui/hung_renderer_dialog_test.js:54: assertGT(themeGraphic.height, 0); On 2011/11/07 20:39:24, wyck wrote: > ...
9 years, 1 month ago (2011-11-07 21:00:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wyck@chromium.org/8372042/12001
9 years, 1 month ago (2011-11-07 21:01:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wyck@chromium.org/8372042/13006
9 years, 1 month ago (2011-11-07 21:08:09 UTC) #6
commit-bot: I haz the power
Change committed as 108924
9 years, 1 month ago (2011-11-07 22:38:42 UTC) #7
wyck
9 years, 1 month ago (2011-11-10 06:45:56 UTC) #8
I fixed the issue that caused the revert.  On WinXP OnDialogClose is called for
a test that doesn't call chrome.send('DialogClose').  And the hung renderer
dialog would interpret this as a wait timer restart.  So I avoid this by adding
a flag to limit the hung renderer dialog's ability to kill processes or restart
wait timers when instantiated from a test.  It's simpler than creating a full
controller & mock just to mute the one function.

Powered by Google App Engine
This is Rietveld 408576698