Tests: Synchronize imported tests with the WPT repository

This commit is contained in:
Tim Ledbetter
2025-06-21 15:43:33 +01:00
committed by Alexander Kalenik
parent 11e5cd5048
commit 689dff3ee8
Notes: github-actions[bot] 2025-06-22 21:52:43 +00:00
155 changed files with 1485 additions and 750 deletions

View File

@@ -20,6 +20,11 @@ async_test(t => {
const canvas = frames[0].document.querySelector("canvas");
canvas.toBlob(new frames[1].Function(`throw new parent.frames[2].Error("PASS");`));
// Wait until at least one `onerror` fires.
t.step_wait_func(() => onerrorCalls.length != 0);
// Wait for 25ms more in case one other `onerror` fires. This is inherently
// flaky...
t.step_timeout(() => {
assert_array_equals(onerrorCalls, ["frame1"]);
t.done();