mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -29,8 +29,9 @@ promise_test(async t => {
|
|||
</script>
|
||||
`;
|
||||
|
||||
const p = new Promise(r => window.onmessage = e => r(e.data));
|
||||
const frame = await with_iframe(`data:text/html;base64,${btoa(frameCode)}`);
|
||||
const result = await new Promise(r => window.onmessage = e => r(e.data));
|
||||
const result = await p;
|
||||
assert_equals(result, 'PASS');
|
||||
}, 'Create a shared worker in a data url frame');
|
||||
|
||||
|
@ -57,7 +58,8 @@ promise_test(async t => {
|
|||
</script>
|
||||
`;
|
||||
|
||||
const p = new Promise(r => window.onmessage = e => r(e.data));
|
||||
const frame = await with_iframe(`data:text/html;base64,${btoa(frameCode)}`);
|
||||
const result = await new Promise(r => window.onmessage = e => r(e.data));
|
||||
const result = await p;
|
||||
assert_equals(result, 'PASS');
|
||||
}, 'Create a data url shared worker in a data url frame');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue