mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision 527a9287825118957bb7d94c098c448cef9d6982
This commit is contained in:
parent
b876168721
commit
ed25f52f43
289 changed files with 4880 additions and 2539 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue