mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44
This commit is contained in:
parent
f183d66217
commit
292a12e545
261 changed files with 5513 additions and 966 deletions
|
@ -3,7 +3,7 @@
|
|||
<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;
|
||||
|
@ -14,6 +14,8 @@ test(function() {
|
|||
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.width, width);
|
||||
assert_equals(dstCanvas.height, height);
|
||||
}, "Test that ctx.canvas on a ImageBitmapRenderingContext returns the original canvas");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue