OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>Canvas's ImageBitmapRenderingContext test</title> |
| 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/scripting.html#the
-imagebitmap-rendering-context"> |
| 7 <script> |
| 8 var width = 10; |
| 9 var height = 10; |
| 10 |
| 11 test(function() { |
| 12 var canvas = document.createElement("canvas"); |
| 13 canvas.width = width; |
| 14 canvas.height = height; |
| 15 var ctx = canvas.getContext('bitmaprenderer'); |
| 16 var dstCanvas = ctx.canvas; |
| 17 assert_equals(dstCanvas.width, width); |
| 18 assert_equals(dstCanvas.height, height); |
| 19 }, "Test that ctx.canvas on a ImageBitmapRenderingContext returns the original c
anvas"); |
| 20 |
| 21 </script> |
OLD | NEW |