mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision 55351d32dd26ea3ad42a8f5973e943ba0342c812
This commit is contained in:
parent
1b7223a284
commit
81d0cdbb2c
159 changed files with 2809 additions and 967 deletions
|
@ -1,8 +1,10 @@
|
|||
// Put test results into Stash
|
||||
function stashResults(key, results) {
|
||||
function stashResultsThenClose(key, results) {
|
||||
fetch(`/scroll-to-text-fragment/stash.py?key=${key}`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(results)
|
||||
}).then(() => {
|
||||
window.close();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -18,6 +20,10 @@ function fetchResults(key, resolve, reject) {
|
|||
} catch(e) {
|
||||
reject();
|
||||
}
|
||||
} else {
|
||||
// We keep trying to fetch results as the target page may not have stashed
|
||||
// them yet.
|
||||
fetchResults(key, resolve, reject);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue