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

Issue 2422433002: Add a layout test for longtask timing (Closed)

Created:
4 years, 2 months ago by panicker
Modified:
4 years, 1 month ago
Reviewers:
haraken, caseq, Rick Byers
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a layout test for longtask timing BUG=635596 Committed: https://crrev.com/97baf8674918865d98af196ee9f9dcf0a3a4fd8c Cr-Commit-Position: refs/heads/master@{#426108}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html View 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
panicker
Hey Kentaro, Andrey, I'd like to add a suite of tests for long task timing, ...
4 years, 2 months ago (2016-10-13 22:42:08 UTC) #2
haraken
LGTM
4 years, 2 months ago (2016-10-14 00:06:41 UTC) #3
caseq
lgtm, though I guess you also want to add the test expectation :-)
4 years, 2 months ago (2016-10-14 00:45:46 UTC) #4
panicker
On 2016/10/14 00:45:46, caseq wrote: > lgtm, though I guess you also want to add ...
4 years, 2 months ago (2016-10-14 17:35:26 UTC) #5
panicker
Rick - could you review for OWNERS ?
4 years, 2 months ago (2016-10-14 17:37:22 UTC) #7
Rick Byers
On 2016/10/14 17:37:22, Shubhie wrote: > Rick - could you review for OWNERS ? LayoutTests ...
4 years, 2 months ago (2016-10-17 15:06:25 UTC) #8
panicker
On 2016/10/17 15:06:25, Rick Byers wrote: > On 2016/10/14 17:37:22, Shubhie wrote: > > Rick ...
4 years, 2 months ago (2016-10-17 18:01:21 UTC) #9
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/2422433002/1
4 years, 2 months ago (2016-10-18 23:27:22 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-19 01:38:28 UTC) #16
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/97baf8674918865d98af196ee9f9dcf0a3a4fd8c Cr-Commit-Position: refs/heads/master@{#426108}
4 years, 2 months ago (2016-10-21 13:05:29 UTC) #18
Rick Byers
4 years, 1 month ago (2016-10-27 03:58:28 UTC) #19
Message was sent while issue was closed.
Sorry I missed this!

On 2016/10/17 18:01:21, Shubhie wrote:
> On 2016/10/17 15:06:25, Rick Byers wrote:
> > On 2016/10/14 17:37:22, Shubhie wrote:
> > > Rick - could you review for OWNERS ?
> > 
> > LayoutTests has OWNERS *, so you're already good.
> > 
> > But regardless LGTM.
> > 
> > The only thing I'd suggest you might want to think about is your path to a
> > web-platform-test suite that other vendors can easily consume.  Do you
expect
> > you'll be able to test most things without any window.internals/eventSender
> > calls?  If so then you could iterate as layouts tests for now and once
they're
> > in good shape move them to web-platform-tests.  Or you could just go with
> > web-platform-tests from the start (though we don't yet have the tooling in
> place
> > to make that as easy for you as we'd liked it to be).
> Thanks for the advise here.
> - One question I have is that the tests generate a long task by doing
something
> slow: while (window.performance.now() < begin + 51)
> Do you have any concerns with having a couple dozen of these in the test suite
> eventually?

Yeah that's a good point.  If there's only a couple then it should be fine.  We
may need (or even already have) some way to flag some particularly slow tests
for special handling, but I'm SURE there are already quite a few WPTs that take
>100ms.

> - I started with writing this as a web-platform-test and then ported to layout
> test. The reason is that we don't have a blessed spec for this API yet. What's
> the official policy here?

As long as there's some spec somewhere (eg. WICG, even private GitHub) then it
should be fine.  For the most part nobody seems to care when new tests are added
(if they don't pass, nobody will be running them).  But there's a good chance
it's not worth the hassle of working in WPT until you're actually close to
getting some benefit from it (eg. impls starting elsewhere).  But it's always a
shame when Mozilla starts implementing and rewrites a whole test suite from
scratch because we didn't make ours follow the w3c standard format (or they
didn't know ours existed).

> - I don't expect to need window.internals/eventSender calls.

Powered by Google App Engine
This is Rietveld 408576698