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

Issue 2697683004: Add automated testing to check for page size with scaling (Closed)

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

Description

Add automated testing to check for page size with scaling Ensure correct page size is still passed back with non default scaling values - see bug 686384. Also, modify print web view helper to prevent any rounding errors from converting dpi -> pixels -> dpi and scaling and unscaling. BUG=686384 Review-Url: https://codereview.chromium.org/2697683004 Cr-Commit-Position: refs/heads/master@{#452737} Committed: https://chromium.googlesource.com/chromium/src/+/230c3f1c820ccb738e9715cd45b2b5e049d782d7

Patch Set 1 #

Patch Set 2 : Fix git cl format issue #

Total comments: 27

Patch Set 3 : Address comments #

Total comments: 8

Patch Set 4 : Split verification fn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -17 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 2 chunks +10 lines, -13 lines 0 comments Download
M components/printing/test/mock_printer.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M components/printing/test/mock_printer.cc View 1 2 3 chunks +12 lines, -1 line 0 comments Download
M components/printing/test/print_mock_render_thread.cc View 1 2 2 chunks +26 lines, -2 lines 0 comments Download
M components/printing/test/print_web_view_helper_browsertest.cc View 1 2 3 3 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
rbpotter
3 years, 10 months ago (2017-02-15 16:20:43 UTC) #7
rbpotter
3 years, 10 months ago (2017-02-21 22:13:25 UTC) #9
Lei Zhang
Mostly nits. https://codereview.chromium.org/2697683004/diff/20001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2697683004/diff/20001/components/printing/renderer/print_web_view_helper.cc#newcode1850 components/printing/renderer/print_web_view_helper.cc:1850: // Pull the original page size here. ...
3 years, 10 months ago (2017-02-22 21:21:38 UTC) #10
Lei Zhang
And BUG=686384 in the CL description and just "see bug" instead of "see bug N."
3 years, 10 months ago (2017-02-22 23:05:07 UTC) #11
rbpotter
https://codereview.chromium.org/2697683004/diff/20001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2697683004/diff/20001/components/printing/renderer/print_web_view_helper.cc#newcode1850 components/printing/renderer/print_web_view_helper.cc:1850: // Pull the original page size here. Windows uses ...
3 years, 10 months ago (2017-02-23 22:27:17 UTC) #15
Lei Zhang
https://codereview.chromium.org/2697683004/diff/20001/components/printing/test/print_web_view_helper_browsertest.cc File components/printing/test/print_web_view_helper_browsertest.cc (right): https://codereview.chromium.org/2697683004/diff/20001/components/printing/test/print_web_view_helper_browsertest.cc#newcode240 components/printing/test/print_web_view_helper_browsertest.cc:240: gfx::Size page_size_received = On 2017/02/23 22:27:11, rbpotter wrote: > ...
3 years, 10 months ago (2017-02-23 23:13:55 UTC) #18
rbpotter
I thought it wasn't possible to read off the IPC message twice, but apparently that ...
3 years, 10 months ago (2017-02-24 00:34:28 UTC) #19
Lei Zhang
On 2017/02/24 00:34:28, rbpotter wrote: > I thought it wasn't possible to read off the ...
3 years, 10 months ago (2017-02-24 00:53:47 UTC) #22
Lei Zhang
lgtm
3 years, 10 months ago (2017-02-24 00:55:09 UTC) #23
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/2697683004/60001
3 years, 10 months ago (2017-02-24 03:13:31 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/230c3f1c820ccb738e9715cd45b2b5e049d782d7
3 years, 10 months ago (2017-02-24 03:20:27 UTC) #30
hajimehoshi
3 years, 10 months ago (2017-02-24 05:36:49 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2718513003/ by hajimehoshi@chromium.org.

The reason for reverting is: Looks like this causes build bot errors:
crbug.com/695760.

Powered by Google App Engine
This is Rietveld 408576698