Page MenuHomePhabricator

Bug 1595564 - Dispatch TestRendered event for wpt reftests with reftest-wait,
ClosedPublic

Authored by jgraham on Nov 12 2019, 3:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 20, 3:30 PM
Unknown Object (File)
Mar 15 2026, 8:32 AM
Unknown Object (File)
Mar 15 2026, 8:00 AM
Unknown Object (File)
Mar 15 2026, 1:43 AM
Unknown Object (File)
Mar 14 2026, 9:31 AM
Unknown Object (File)
Mar 10 2026, 6:47 PM
Unknown Object (File)
Feb 12 2026, 10:02 PM
Unknown Object (File)
Oct 15 2025, 3:14 PM
Subscribers
None

Details

Summary

The TestRendered event is dispatched for reftests containing a
reftest-wait class on the root at the time the test would complete if
there wasn't such a class. This occurs after the initial paint is
complete, so any dynamic changes can be performed in such a way that
they are not batched with the initial layout/paint.

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

(I'm punting review to mattwoodrow, per IRC)

lgtm, I like the refactoring.

This revision is now accepted and ready to land.Nov 13 2019, 3:16 PM
This revision now requires review to proceed.Nov 13 2019, 3:23 PM
mattwoodrow added inline comments.
testing/marionette/listener.js
1741–1748

What are we checking again here? Seems like we only check for reftest-wait before waiting for load now.

Could we just check for reftest-wait for the first time at this point (loaded, painting all finished and stable), and then fire TestRendered if so?

This revision is now accepted and ready to land.Nov 20 2019, 11:21 PM
This revision now requires review to proceed.Nov 20 2019, 11:21 PM
testing/marionette/listener.js
1741–1748

Oh yes, that comment is wrong. We certainly could just check here, but there's a small semantic difference between checking for reftest-wait at the point at which the load event fires and checking for it later when we're going to take the screenshot. It probably doesn't matter in practice, but this is closer to the old behaviour. That said it looks like the implementation for other browsers is closer to what you're suggesting and it does make the implementation easier so I guess I'll take the risk of changing it.

This revision is now accepted and ready to land.Nov 25 2019, 2:49 PM
testing/marionette/listener.js
1741–1748

So I tried delaying the check for reftest-wait and amazingly got a bunch of intermittents. So I'm going to land this version for now.