Bug 1580324 [wpt PR 18976] - TransferToImageBitmap should reset the bitmap to transparent black, a=testonly

Automatic update from web-platform-tests
TransferToImageBitmap should reset the bitmap to transparent black

It was implemented to reset to black, but it should be transparent
black, fixing also the broken tests that were validating the wrong
behaviour.

Bug: 1001609
Change-Id: I68e51628bd36e19b2c332da60239e6a48ebecf8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1796442
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Commit-Queue: Juanmi Huertas <juanmihd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695658}

--

wpt-commits: b272022f914b1bcdfc72255f3f1373306c45a238
wpt-pr: 18976
This commit is contained in:
Juanmi Huertas 2019-09-13 11:02:02 +00:00 committed by moz-wptsync-bot
parent 68019ff6f1
commit 78f2b8a75e

View File

@ -36,7 +36,7 @@ promise_test(function() {
var myCanvas2 = document.createElement('canvas');
var myCtx2 = myCanvas2.getContext('bitmaprenderer');
myCtx2.transferFromImageBitmap(bitmapCanvas.transferToImageBitmap());
testCanvas(myCanvas2, 0, 0, 0, 255);
testCanvas(myCanvas2, 0, 0, 0, 0);
}
var greenCanvas = document.createElement('canvas');