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

Issue 2683653005: Fix WindowdotPrintShouldBringUpPrintPreview (Closed)

Created:
3 years, 10 months ago by rbpotter
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix WindowdotPrintShouldBringUpPrintPreview Fix this test by changing auto_cancel to false. The delegate was waiting for the preview to be ready but cancel was being clicked in javascript before the preview finished so the delegate never stopped. Also move to base::RunLoop instead of content::MessageLoopRunner since MessageLoopRunner is deprecated per comment in test_utils.h. BUG=312897 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2683653005 Cr-Commit-Position: refs/heads/master@{#449430} Committed: https://chromium.googlesource.com/chromium/src/+/1c04025f853bc892cb4064cc5c7711bd33facbd6

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove now unused testing path, address comments #

Total comments: 2

Patch Set 3 : Move inits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -47 lines) Patch
M chrome/browser/apps/app_browsertest.cc View 1 2 9 chunks +17 lines, -32 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 1 chunk +0 lines, -1 line 1 comment Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
rbpotter
Small fix of a disabled/previously failing printing test in app_browsertest.
3 years, 10 months ago (2017-02-09 00:44:07 UTC) #8
tapted
https://codereview.chromium.org/2683653005/diff/1/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/2683653005/diff/1/chrome/browser/apps/app_browsertest.cc#newcode45 chrome/browser/apps/app_browsertest.cc:45: #include "content/public/test/test_utils.h" is one or both of these content..test_utils.h ...
3 years, 10 months ago (2017-02-09 01:10:02 UTC) #9
rbpotter
Addressed comments. +printing reviewers vitalybuka@ and dpapad@ for chrome/browser/ui/webui/print_preview and chrome/browser/resources/print_preview. Is there any reason ...
3 years, 10 months ago (2017-02-09 01:56:41 UTC) #14
tapted
c/b/apps lgtm - thanks! https://codereview.chromium.org/2683653005/diff/20001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/2683653005/diff/20001/chrome/browser/apps/app_browsertest.cc#newcode165 chrome/browser/apps/app_browsertest.cc:165: int total_page_count_; nit: move the ...
3 years, 10 months ago (2017-02-09 02:03:02 UTC) #15
Vitaly Buka (NO REVIEWS)
lgtm
3 years, 10 months ago (2017-02-09 02:44:22 UTC) #16
dpapad
lgtm
3 years, 10 months ago (2017-02-09 18:32:25 UTC) #19
rbpotter
https://codereview.chromium.org/2683653005/diff/20001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/2683653005/diff/20001/chrome/browser/apps/app_browsertest.cc#newcode165 chrome/browser/apps/app_browsertest.cc:165: int total_page_count_; On 2017/02/09 02:03:02, tapted wrote: > nit: ...
3 years, 10 months ago (2017-02-09 20:11:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2683653005/40001
3 years, 10 months ago (2017-02-09 21:54:53 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/1c04025f853bc892cb4064cc5c7711bd33facbd6
3 years, 10 months ago (2017-02-09 22:00:11 UTC) #30
Lei Zhang
3 years, 10 months ago (2017-02-25 01:33:29 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/2683653005/diff/40001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/print_preview/print_preview_ui.h (right):

https://codereview.chromium.org/2683653005/diff/40001/chrome/browser/ui/webui...
chrome/browser/ui/webui/print_preview/print_preview_ui.h:151: // also instructs
the dialog to auto-cancel, which is used for testing only.
Comment's slightly out of date since we remove IsAutoCancelEnabled().

Powered by Google App Engine
This is Rietveld 408576698