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

Issue 1284383007: ProfileErrorBrowserTest should wait for layout. (Closed)

Created:
5 years, 4 months ago by esprehn
Modified:
5 years, 4 months ago
Reviewers:
msw, gab, Nico, tiany
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ProfileErrorBrowserTest should wait for layout. The test was checking for the Startup.FirstWebContents.NonEmptyPaint histogram metric which is recorded by the didFirstVisuallyNonEmptyLayout client callback out of blink. The test doesn't actually wait until after the page does a layout though so it'll randomly fail when it loses the race. Currently blink issues this callback too early when loading pages, but soon (https://codereview.chromium.org/1295053002) it will start only issuing the callback after stylesheets have loaded and the page has started painting matching the usage in Chromium where this callback maps to painting, not to layout. To fix the race we now wait for requestAnimationFrame to run which will ensure that the blink pipeline has been run, and layout and paint processed before testing for the values of the UMA metrics. BUG=521692 Committed: https://crrev.com/0ea17fce0d5218c909985e2216051eab79419463 Cr-Commit-Position: refs/heads/master@{#343796}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M chrome/browser/ui/profile_error_browsertest.cc View 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
esprehn
5 years, 4 months ago (2015-08-17 22:57:52 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1284383007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1284383007/1
5 years, 4 months ago (2015-08-17 23:11:58 UTC) #4
Nico
lgtm Looks like the author of this test might no longer be with us, but ...
5 years, 4 months ago (2015-08-17 23:43:49 UTC) #6
msw
lgtm
5 years, 4 months ago (2015-08-17 23:45:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1284383007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1284383007/1
5 years, 4 months ago (2015-08-18 00:02:29 UTC) #10
gab
lgtm, thanks
5 years, 4 months ago (2015-08-18 01:38:40 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/99377)
5 years, 4 months ago (2015-08-18 01:41:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1284383007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1284383007/1
5 years, 4 months ago (2015-08-18 03:43:40 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-08-18 05:06:41 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 05:07:53 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0ea17fce0d5218c909985e2216051eab79419463
Cr-Commit-Position: refs/heads/master@{#343796}

Powered by Google App Engine
This is Rietveld 408576698