Update web-platform-tests to revision 548818eee08f7a6e31b9706b352b5d44b2f6d024

This commit is contained in:
WPT Sync Bot 2019-12-12 08:22:50 +00:00
parent 82fd8d1daf
commit 5e74467d68
112 changed files with 1704 additions and 536 deletions

View file

@ -0,0 +1,23 @@
// Put test results into Stash
function stashResults(key, results) {
fetch(`/scroll-to-text-fragment/stash.py?key=${key}`, {
method: 'POST',
body: JSON.stringify(results)
});
}
// Fetch test results from the Stash
function fetchResults(key, resolve, reject) {
fetch(`/scroll-to-text-fragment/stash.py?key=${key}`).then(response => {
return response.text();
}).then(text => {
if (text) {
try {
const results = JSON.parse(text);
resolve(results);
} catch(e) {
reject();
}
}
});
}