1 description("Ensure that globalAlpha is applied correctly to text.");
2 var canvas = document.createElement('canvas');
3 var ctx = canvas.getContext('2d');
4 ctx.fillStyle = "black";
6 ctx.font = "50px Arial";
7 ctx.fillText("A",50,50);
8 var imageData = ctx.getImageData(63, 22, 1, 1);
9 var imgdata = imageData.data;
10 shouldBeTrue("imgdata[3] == 127 || imgdata[3] == 128");