mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5
This commit is contained in:
parent
d44e9aced2
commit
0e5e5db397
109 changed files with 2053 additions and 708 deletions
|
@ -1,10 +1,10 @@
|
|||
// Opens |url| in an iframe, establish a message channel with it, and waits for
|
||||
// a message from the frame content. Returns a promise that resolves with the
|
||||
// data of the message, or rejects on 2000ms timeout.
|
||||
// data of the message, or rejects on 3000ms timeout.
|
||||
function openSXGInIframeAndWaitForMessage(test_object, url, referrerPolicy) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
// We can't catch the network error on iframe. So we use the timer.
|
||||
test_object.step_timeout(() => reject('timeout'), 2000);
|
||||
test_object.step_timeout(() => reject('timeout'), 3000);
|
||||
|
||||
const frame = await withIframe(url, 'sxg_iframe', referrerPolicy);
|
||||
const channel = new MessageChannel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue