Description was changed from ========== Attempt 2: Update PaintTiming Web Perf APIs for FP & ...
3 years, 6 months ago
(2017-06-07 23:37:44 UTC)
#1
Description was changed from
==========
Attempt 2: Update PaintTiming Web Perf APIs for FP & FCP to report swap time
Update tests to use capturePixelsAsyncThen to generate a frame, and check
buffered values.
BUG=657825,657826
==========
to
==========
Attempt 2: Update PaintTiming Web Perf APIs for FP & FCP to report swap time
Update tests to use capturePixelsAsyncThen to generate a frame, and check
buffered values.
BUG=657825,657826
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
Hey folks This is a rollforward for this CL that you reviewed previously. https://codereview.chromium.org/2873033002 The ...
3 years, 6 months ago
(2017-06-07 23:43:56 UTC)
#3
Hey folks
This is a rollforward for this CL that you reviewed previously.
https://codereview.chromium.org/2873033002
The main issue was with tests, which I've fixed now.
PTAL.
PS: Haven't figured out how to keep using PerformanceObserver with
capturePixelsAsyncThen, but a good follow-up thing.
tdresser
https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html File third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html (right): https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html#newcode13 third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html:13: testRunner.capturePixelsAsyncThen(t.step_func(function() { Can we make a promise based version ...
3 years, 6 months ago
(2017-06-08 14:34:33 UTC)
#4
3 years, 6 months ago
(2017-06-09 15:33:33 UTC)
#7
(rs)lgtm.
panicker
Thanks for the review! https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html File third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html (right): https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html#newcode13 third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html:13: testRunner.capturePixelsAsyncThen(t.step_func(function() { On 2017/06/09 14:26:27, ...
3 years, 6 months ago
(2017-06-09 20:29:48 UTC)
#8
Thanks for the review!
https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html
(right):
https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-paint.html:13:
testRunner.capturePixelsAsyncThen(t.step_func(function() {
On 2017/06/09 14:26:27, tdresser wrote:
> On 2017/06/08 22:47:04, panicker wrote:
> > On 2017/06/08 14:34:32, tdresser wrote:
> > > Can we make a promise based version of capturePixelsAsyncThen?
> > > Even if we don't share it, I think it could clean up this test a fair bit.
> > >
> > > Perhaps snazzy new async / await syntax could be useful here?
> > > We could then just await on capture pixels?
> >
> > this is C++ exposed, I suppose we can talk to testing / relevant folks on
> > supporting promise based API, but I don't think I want to update the
> > test_runner.cc :)
> >
> > FWIW - the nesting is a common pattern AFAICT, eg:
> >
>
https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/http/test...
> >
> >
> >
>
https://cs.chromium.org/chromium/src/content/shell/test_runner/test_runner.cc...
>
> I was thinking we'd just wrap capturePixelsAsyncThen in js. We could stick it
in
> some shared js file.
>
> For example, something like https://output.jsbin.com/siduhi/quiet.
>
> It isn't much code, and I think it would make this test especially much easier
> to read.
>
> That being said, if you'd prefer to stick with nesting, that's fine by me.
Nice! This seems like a great follow-up (I couldn't get the syntax working, and
taken an AI to get upto speed on promise & es6 usage & syntax :))
https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-svg.html
(right):
https://codereview.chromium.org/2932593002/diff/20001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/first-contentful-svg.html:14:
document.getElementById('svg').appendChild(img);
On 2017/06/09 14:26:27, tdresser wrote:
> On 2017/06/08 22:47:04, panicker wrote:
> > On 2017/06/08 14:34:32, tdresser wrote:
> > > Would this be clearer in html vs js?
> >
> > the reason to do stuff in JS is to control timing of when things happen
>
> In this example, what would the difference in timing be? I thought they'd be
the
> same.
I think in this case it's fine because I moved the div from bottom to top, but
prefer (not strong opinion) to be more explicit in test:
do a thing, then assert, do something else, then assert something else ...
https://codereview.chromium.org/2932593002/diff/60001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/basetest.html
(right):
https://codereview.chromium.org/2932593002/diff/60001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/basetest.html:16:
var div = document.createElement("div");
On 2017/06/09 14:26:27, tdresser wrote:
> Should we use const/let in tests at this point?
Done.
panicker
The CQ bit was checked by panicker@chromium.org to run a CQ dry run
3 years, 6 months ago
(2017-06-09 20:31:15 UTC)
#9
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/475772)
3 years, 6 months ago
(2017-06-09 22:37:53 UTC)
#12
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/475274)
3 years, 6 months ago
(2017-06-12 21:17:25 UTC)
#18
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/478135)
3 years, 6 months ago
(2017-06-14 00:52:25 UTC)
#23
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/478244)
3 years, 6 months ago
(2017-06-14 03:11:03 UTC)
#28
CQ is committing da patch. Bot data: {"patchset_id": 140001, "attempt_start_ts": 1497414933117790, "parent_rev": "f9848df898526e51f20e95deddd426575b758418", "commit_rev": "600950a6cab835f6a2932ead72cb0c0a34782fa5"}
3 years, 6 months ago
(2017-06-14 06:23:18 UTC)
#34
CQ is committing da patch.
Bot data: {"patchset_id": 140001, "attempt_start_ts": 1497414933117790,
"parent_rev": "f9848df898526e51f20e95deddd426575b758418", "commit_rev":
"600950a6cab835f6a2932ead72cb0c0a34782fa5"}
commit-bot: I haz the power
Description was changed from ========== Attempt 2: Update PaintTiming Web Perf APIs for FP & ...
3 years, 6 months ago
(2017-06-14 06:23:27 UTC)
#35
Message was sent while issue was closed.
Description was changed from
==========
Attempt 2: Update PaintTiming Web Perf APIs for FP & FCP to report swap time
Update tests to use capturePixelsAsyncThen to generate a frame, and check
buffered values.
BUG=657825,657826
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
==========
to
==========
Attempt 2: Update PaintTiming Web Perf APIs for FP & FCP to report swap time
Update tests to use capturePixelsAsyncThen to generate a frame, and check
buffered values.
BUG=657825,657826
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2932593002
Cr-Commit-Position: refs/heads/master@{#479303}
Committed:
https://chromium.googlesource.com/chromium/src/+/600950a6cab835f6a2932ead72cb...
==========
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/600950a6cab835f6a2932ead72cb0c0a34782fa5
3 years, 6 months ago
(2017-06-14 06:23:29 UTC)
#36
Issue 2932593002: Attempt 2: Update PaintTiming Web Perf APIs for FP & FCP to report swap time
(Closed)
Created 3 years, 6 months ago by panicker
Modified 3 years, 6 months ago
Reviewers: tdresser, Xianzhu
Base URL:
Comments: 16