Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-createImageBitmap-data-in-workers.html
blob87bc94479be925a2f7c9ca0093d72348c978823c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 var worker = startWorker('./resources/canvas-createImageBitmap-data-in-workers.js');
10 var canvas = document.createElement("canvas");
11 canvas.setAttribute("width", "50");
12 canvas.setAttribute("height", "50");
13 var ctx = canvas.getContext("2d");
14 ctx.fillStyle = 'green';
15 ctx.fillRect(0, 0, 50, 50);
17 var data = ctx.getImageData(0, 0, 50, 50);
18 worker.postMessage(data);
19 </script>
20 </body>
21 </html>