Closed Bug 1866876 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 43376 - Add infra test that window.load happens before reftest capture

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 43376 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/43376
Details from upstream follow.

Mason Freed <masonf@chromium.org> wrote:

Add infra test that window.load happens before reftest capture

This adds a WPT infrastructure test to enforce that the harness
waits for window.load before capturing reftest images. That allows
testing like this:

\<link rel=match href=green.html>
\<script>
  window.onload = () => document.body.append('test');
\</script>

See [1] for conversation.

[1] https://github.com/web-platform-tests/wpt/pull/43310

Change-Id: I1f3f9836ca880350b294538dd2f2d58689485f7b
Reviewed-on: https://chromium-review.googlesource.com/5064229
WPT-Export-Revision: 08a9d3bd36edbcfaf4383f7fdcbe01eb38264c5d

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/12454e2d8181 [wpt PR 43376] - Add infra test that window.load happens before reftest capture, a=testonly
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.