Update web-platform-tests to revision 527a9287825118957bb7d94c098c448cef9d6982

This commit is contained in:
WPT Sync Bot 2020-01-08 08:23:30 +00:00
parent b876168721
commit ed25f52f43
289 changed files with 4880 additions and 2539 deletions

View file

@ -5,19 +5,18 @@
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://html.spec.whatwg.org/multipage/canvas.html#the-imagebitmap-rendering-context">
<script>
var width = 10;
var height = 10;
test(function() {
var width = 10;
var height = 10;
var canvas = document.createElement("canvas");
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext('bitmaprenderer');
var dstCanvas = ctx.canvas;
assert_true("canvas" in ctx);
assert_object_equals(canvas, ctx.canvas);
assert_equals(dstCanvas, ctx.canvas);
assert_equals(canvas, ctx.canvas);
assert_equals(dstCanvas.width, width);
assert_equals(dstCanvas.height, height);
}, "Test that ctx.canvas on a ImageBitmapRenderingContext returns the original canvas");
</script>