Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / dom / canvas / test / reftest / 1678909-1.html
blob74bc21f53edcdb0219059f04118dcf9f84fc66f9
1 <!DOCTYPE html>
2 <head><meta charset="utf-8"></head>
3 <body>
4 <canvas id="canvas" width="200" height="200"></canvas>
5 <script>
6 let canvas = document.getElementById('canvas');
7 let ctx = canvas.getContext('2d');
8 let arr = new Uint8ClampedArray(Array(40000).fill(200));
9 createImageBitmap(new ImageData(arr, 100)).then(img => {
10 for (let i=0; i<100; i+=50)
11 ctx.drawImage(img, i, i);
12 });
13 </script>
14 </body>