4 <script src=
"../../resources/js-test.js"></script>
8 var worker
= startWorker('./resources/canvas-createImageBitmap-invalid-args-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
);