Update web-platform-tests to revision 55351d32dd26ea3ad42a8f5973e943ba0342c812

This commit is contained in:
WPT Sync Bot 2020-01-28 08:23:29 +00:00
parent 1b7223a284
commit 81d0cdbb2c
159 changed files with 2809 additions and 967 deletions

View file

@ -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);
}
});
}