mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'b6f6bf16fe6069aed53d28af86a79b8ff4963844'
This commit is contained in:
parent
0720f4f736
commit
8bfdc02dd8
590 changed files with 11442 additions and 3709 deletions
|
@ -11,7 +11,7 @@ function processQueryParams() {
|
|||
|
||||
// Create an iframe element, set it up using `setUpFrame`, and optionally fetch
|
||||
// tests in it. Returns the created frame, after it has loaded.
|
||||
function CreateFrameHelper(setUpFrame, fetchTests) {
|
||||
async function CreateFrameHelper(setUpFrame, fetchTests) {
|
||||
const frame = document.createElement('iframe');
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
frame.onload = () => resolve(frame);
|
||||
|
@ -21,7 +21,7 @@ function CreateFrameHelper(setUpFrame, fetchTests) {
|
|||
setUpFrame(frame);
|
||||
|
||||
if (fetchTests) {
|
||||
fetch_tests_from_window(frame.contentWindow);
|
||||
await fetch_tests_from_window(frame.contentWindow);
|
||||
}
|
||||
return promise;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue