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

Issue 7747036: Fix flakey test by making sure WebUI dialog is shut down before test completion. (Closed)

Created:
9 years, 4 months ago by Scott Byer
Modified:
9 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix flakey test by making sure WebUI dialog is shut down before test completion. BUG=89931 TEST=Run the test on a loaded single-CPU system before and after the change. Before, notice the dialog staying up past when the main windows goes away, won't get through more than 1 or 2 repeats before breaking. After, dialog goes away first, no more flakey. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98576

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use WindowedNotificationObserver #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M chrome/browser/printing/print_dialog_cloud_uitest.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Scott Byer
This solves the problem by making sure the WebUI dialog is taken down before exiting ...
9 years, 4 months ago (2011-08-26 00:47:57 UTC) #1
willchan no longer on Chromium
LGTM http://codereview.chromium.org/7747036/diff/1/chrome/browser/printing/print_dialog_cloud_uitest.cc File chrome/browser/printing/print_dialog_cloud_uitest.cc (right): http://codereview.chromium.org/7747036/diff/1/chrome/browser/printing/print_dialog_cloud_uitest.cc#newcode240 chrome/browser/printing/print_dialog_cloud_uitest.cc:240: // Close the dialog before finishing the test. ...
9 years, 4 months ago (2011-08-26 11:47:15 UTC) #2
Paweł Hajdan Jr.
Drive-by with a testing comment. http://codereview.chromium.org/7747036/diff/1/chrome/browser/printing/print_dialog_cloud_uitest.cc File chrome/browser/printing/print_dialog_cloud_uitest.cc (right): http://codereview.chromium.org/7747036/diff/1/chrome/browser/printing/print_dialog_cloud_uitest.cc#newcode243 chrome/browser/printing/print_dialog_cloud_uitest.cc:243: ui_test_utils::WaitForNotification(content::NOTIFICATION_TAB_CLOSED); Please use WindowedNotificationObserver ...
9 years, 3 months ago (2011-08-26 21:52:26 UTC) #3
Scott Byer
http://codereview.chromium.org/7747036/diff/1/chrome/browser/printing/print_dialog_cloud_uitest.cc File chrome/browser/printing/print_dialog_cloud_uitest.cc (right): http://codereview.chromium.org/7747036/diff/1/chrome/browser/printing/print_dialog_cloud_uitest.cc#newcode243 chrome/browser/printing/print_dialog_cloud_uitest.cc:243: ui_test_utils::WaitForNotification(content::NOTIFICATION_TAB_CLOSED); On 2011/08/26 21:52:26, Paweł Hajdan Jr. wrote: > ...
9 years, 3 months ago (2011-08-27 19:28:04 UTC) #4
commit-bot: I haz the power
Try job failure for 7747036-5002 (retry) on linux for step "base_unittests". It's a second try, ...
9 years, 3 months ago (2011-08-27 23:31:59 UTC) #5
commit-bot: I haz the power
9 years, 3 months ago (2011-08-28 03:23:49 UTC) #6
Change committed as 98576

Powered by Google App Engine
This is Rietveld 408576698