mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Tests: Synchronize imported tests with the WPT repository
This commit is contained in:
committed by
Alexander Kalenik
parent
11e5cd5048
commit
689dff3ee8
Notes:
github-actions[bot]
2025-06-22 21:52:43 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/689dff3ee85 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5160
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user