mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update web-platform-tests to revision 7ec633bbfbc01de4972e65f81f593983d9cdc17d
This commit is contained in:
parent
24674687ac
commit
36e52003a7
107 changed files with 1452 additions and 646 deletions
|
@ -0,0 +1,17 @@
|
|||
function makeBlob() {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", '/images/pattern.png');
|
||||
xhr.responseType = 'blob';
|
||||
xhr.send();
|
||||
xhr.onload = function() {
|
||||
resolve(xhr.response);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
addEventListener("message", () => {
|
||||
makeBlob().then(createImageBitmap).then(bitmap => {
|
||||
postMessage(bitmap, [bitmap]);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue