mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 548818eee08f7a6e31b9706b352b5d44b2f6d024
This commit is contained in:
parent
82fd8d1daf
commit
5e74467d68
112 changed files with 1704 additions and 536 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue