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

Issue 2628393002: Print Preview: Add test to ensure only 1 preview is started at init (Closed)

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

Description

Add print preview test to ensure only 1 preview is started at init This adds a test to ensure only one DOCUMENT_CHANGE and one CAPABILITIES_CHANGE event are issued on initialization of print preview. This ensures that only one preview will be started. Multiple preview starts cause a race condition that created bug 666595. BUG=680447

Patch Set 1 #

Total comments: 6

Patch Set 2 : Clarify comment and change settings construction #

Total comments: 2

Patch Set 3 : Remove extra stringify #

Patch Set 4 : Count startPreviews not requestPreviews #

Total comments: 4

Patch Set 5 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -1 line) Patch
M chrome/test/data/webui/print_preview.js View 1 2 3 4 2 chunks +40 lines, -1 line 0 comments Download

Messages

Total messages: 31 (19 generated)
rbpotter
3 years, 11 months ago (2017-01-13 18:55:55 UTC) #3
dpapad
https://codereview.chromium.org/2628393002/diff/1/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2628393002/diff/1/chrome/test/data/webui/print_preview.js#newcode1260 chrome/test/data/webui/print_preview.js:1260: this.initialSettings_.serializedAppStateStr_ = Let's simplify how serializedAppStateStr_ is populated. I ...
3 years, 11 months ago (2017-01-13 19:55:10 UTC) #5
rbpotter
https://codereview.chromium.org/2628393002/diff/1/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2628393002/diff/1/chrome/test/data/webui/print_preview.js#newcode1260 chrome/test/data/webui/print_preview.js:1260: this.initialSettings_.serializedAppStateStr_ = On 2017/01/13 19:55:10, dpapad wrote: > Let's ...
3 years, 11 months ago (2017-01-13 21:25:02 UTC) #8
dpapad
https://codereview.chromium.org/2628393002/diff/1/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2628393002/diff/1/chrome/test/data/webui/print_preview.js#newcode1279 chrome/test/data/webui/print_preview.js:1279: // Initializing print preview initializes documentInfo. This triggers On ...
3 years, 11 months ago (2017-01-13 21:37:41 UTC) #9
rbpotter
Am looking to try to find a way to count startPreview calls instead of requestPreview. ...
3 years, 11 months ago (2017-01-13 22:52:19 UTC) #12
rbpotter
Am looking to try to find a way to count startPreview calls instead of requestPreview. ...
3 years, 11 months ago (2017-01-13 22:52:21 UTC) #13
dpapad
On 2017/01/13 at 22:52:21, rbpotter wrote: > Am looking to try to find a way ...
3 years, 11 months ago (2017-01-13 22:57:25 UTC) #14
rbpotter
Realized there was already a inFlightRequestId that could be used to determine the number of ...
3 years, 11 months ago (2017-01-14 02:30:50 UTC) #17
dpapad
That test looks more direct than the previous one. LGTM with nits. https://codereview.chromium.org/2628393002/diff/60001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js ...
3 years, 11 months ago (2017-01-14 02:37:00 UTC) #18
rbpotter
https://codereview.chromium.org/2628393002/diff/60001/chrome/test/data/webui/print_preview.js File chrome/test/data/webui/print_preview.js (right): https://codereview.chromium.org/2628393002/diff/60001/chrome/test/data/webui/print_preview.js#newcode1288 chrome/test/data/webui/print_preview.js:1288: origin = cr.isChromeOS ? 'chrome_os' : 'local'; On 2017/01/14 ...
3 years, 11 months ago (2017-01-17 19:51:24 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/2628393002/80001
3 years, 11 months ago (2017-01-17 20:03:27 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 20:35:47 UTC) #31
Prior attempt to commit was detected, but we were not able to check whether the
issue was successfully committed. Please check Git history manually and re-check
CQ or close this issue as needed.

Powered by Google App Engine
This is Rietveld 408576698