Update web-platform-tests to revision b'e58cde68851afa192214f60a021f1e56b4172b7a'

This commit is contained in:
WPT Sync Bot 2021-03-04 08:19:34 +00:00
parent 902af56b80
commit 885a29c0ba
197 changed files with 2096 additions and 2151 deletions

View file

@ -1,11 +1,13 @@
function makeImageBitmap(width, height) {
function makeOffscreenCanvas(width, height) {
let canvas = new OffscreenCanvas(width, height);
let ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(50, 100, 150, 255)';
ctx.fillRect(0, 0, width, height);
return canvas;
}
return canvas.transferToImageBitmap();
function makeImageBitmap(width, height) {
return makeOffscreenCanvas(width, height).transferToImageBitmap();
}
// Gives a chance to pending output and error callbacks to complete before