Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44

This commit is contained in:
WPT Sync Bot 2019-12-19 08:23:25 +00:00
parent f183d66217
commit 292a12e545
261 changed files with 5513 additions and 966 deletions

View file

@ -3,15 +3,16 @@
<title>Canvas's ImageBitmapRenderingContext test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://html.spec.whatwg.org/multipage/scripting.html#the-imagebitmap-rendering-context">
<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 canvas = new OffscreenCanvas(60,60);
var width = 10;
var height = 10;
var canvas = new OffscreenCanvas(width, height);
var ctx = canvas.getContext('bitmaprenderer');
assert_true(ctx instanceof ImageBitmapRenderingContext);
}, "Test that canvas.getContext('bitmaprenderer') returns an instance of ImageBitmapRenderingContext");
assert_true("canvas" in ctx);
assert_object_equals(canvas, ctx.canvas);
}, "Test that canvas.getContext('bitmaprenderer') returns an instance of ImageBitmapRenderingContext and ctx.canvas on a ImageBitmapRenderingContext returns the original OffscreenCanvas");
</script>