1 description("Test the behavior of closePath on a path with a single point");
2 var ctx
= document
.createElement('canvas').getContext('2d');
4 document
.body
.appendChild(ctx
.canvas
);
6 ctx
.strokeStyle
= '#f00';
9 ctx
.fillStyle
= '#0f0';
10 ctx
.fillRect(0, 0, ctx
.canvas
.width
, ctx
.canvas
.height
);
18 var imageData
= ctx
.getImageData(0, 0, 1, 1);
19 var imgdata
= imageData
.data
;
20 shouldBe("imgdata[0]", "0");
21 shouldBe("imgdata[1]", "255");
22 shouldBe("imgdata[2]", "0");
23 shouldBe("imgdata[3]", "255");