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

Issue 26678004: Added a browser test of the print preview dialog size for Chrome apps. (Closed)

Created:
7 years, 2 months ago by dharcourt
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org, miket_OOO
Visibility:
Public.

Description

Added a browser test of the print preview dialog size for Chrome apps. The added PrintPreviewShouldNotBeTooSmall test verifies that the print preview dialog is big enough to be usable even when printing small application windows. Because the print preview dialog is currently limited to the size of the window being printed on all platforms but OS X, this test currently fails on all platforms but OS X. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228747

Patch Set 1 #

Total comments: 8

Patch Set 2 : Refactored to use WebContentsView::GetContainerSize instead of JavaScript's window.onresize. #

Total comments: 13

Patch Set 3 : Implemented review suggestions & rebased #

Total comments: 10

Patch Set 4 : Implemented follow-up review suggestions #

Total comments: 2

Patch Set 5 : Implemented follow-up review suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -28 lines) Patch
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 4 chunks +56 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 4 4 chunks +6 lines, -13 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/print_api/test.js View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
dharcourt
Hi Vitaly, This is a tentative implementation of a preview dialog size test for Chrome ...
7 years, 2 months ago (2013-10-09 20:07:54 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/26678004/diff/1/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/1/chrome/browser/apps/app_browsertest.cc#newcode1133 chrome/browser/apps/app_browsertest.cc:1133: EXPECT_GE(size_monitor.GetSizeForTesting().width(), 200); I guess 200 is aprox size, so ...
7 years, 2 months ago (2013-10-09 20:57:36 UTC) #2
dharcourt
Vitaly, you may want to hold off on reviewing this. I'm going to replace the ...
7 years, 2 months ago (2013-10-09 21:04:22 UTC) #3
dharcourt
Hi Vitaly, a candidate-for-committing patch has been uploaded, please review at your convenience. The code ...
7 years, 2 months ago (2013-10-11 23:45:22 UTC) #4
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/26678004/diff/8001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/8001/chrome/browser/apps/app_browsertest.cc#newcode127 chrome/browser/apps/app_browsertest.cc:127: waiting_for_ready_(false), can you remove waiting_for_ready_ and just use ...
7 years, 2 months ago (2013-10-14 21:13:55 UTC) #5
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/26678004/diff/8001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/8001/chrome/browser/apps/app_browsertest.cc#newcode148 chrome/browser/apps/app_browsertest.cc:148: OVERRIDE {; what's this ";" doing here? :) ...
7 years, 2 months ago (2013-10-14 23:02:58 UTC) #6
dharcourt
https://codereview.chromium.org/26678004/diff/8001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/8001/chrome/browser/apps/app_browsertest.cc#newcode127 chrome/browser/apps/app_browsertest.cc:127: waiting_for_ready_(false), On 2013/10/14 21:13:55, Vitaly Buka wrote: > can ...
7 years, 2 months ago (2013-10-15 01:01:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/26678004/16001
7 years, 2 months ago (2013-10-15 01:01:58 UTC) #8
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc#newcode158 chrome/browser/apps/app_browsertest.cc:158: waiting_runner_->Run(); Now waiting_runner_ is NULL always? https://codereview.chromium.org/26678004/diff/16001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc File chrome/browser/ui/webui/print_preview/print_preview_ui.cc ...
7 years, 2 months ago (2013-10-15 01:09:11 UTC) #9
dharcourt
https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc#newcode158 chrome/browser/apps/app_browsertest.cc:158: waiting_runner_->Run(); On 2013/10/15 01:09:11, Vitaly Buka wrote: > Now ...
7 years, 2 months ago (2013-10-15 01:47:48 UTC) #10
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc#newcode150 chrome/browser/apps/app_browsertest.cc:150: if (waiting_runner_ && rendered_page_count_ == total_page_count_) { Why do ...
7 years, 2 months ago (2013-10-15 02:18:06 UTC) #11
Vitaly Buka (NO REVIEWS)
Still lgtm https://codereview.chromium.org/26678004/diff/24001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc File chrome/browser/ui/webui/print_preview/print_preview_ui.cc (right): https://codereview.chromium.org/26678004/diff/24001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc#newcode506 chrome/browser/ui/webui/print_preview/print_preview_ui.cc:506: if (g_testing_delegate_ != NULL && g_testing_delegate_->IsAutoCancelEnabled()) I ...
7 years, 2 months ago (2013-10-15 02:20:12 UTC) #12
dharcourt
https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (right): https://codereview.chromium.org/26678004/diff/16001/chrome/browser/apps/app_browsertest.cc#newcode150 chrome/browser/apps/app_browsertest.cc:150: if (waiting_runner_ && rendered_page_count_ == total_page_count_) { On 2013/10/15 ...
7 years, 2 months ago (2013-10-15 02:55:07 UTC) #13
Vitaly Buka (NO REVIEWS)
lgtm
7 years, 2 months ago (2013-10-15 17:13:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dharcourt@chromium.org/26678004/41001
7 years, 2 months ago (2013-10-15 17:16:11 UTC) #15
commit-bot: I haz the power
7 years, 2 months ago (2013-10-15 20:03:37 UTC) #16
Message was sent while issue was closed.
Change committed as 228747

Powered by Google App Engine
This is Rietveld 408576698