Bug 553102 - Remove unnecessary SpecialPowers wrap in test_canvas.html. r=me

I put this in in bug 778420, but it looks like it wasn't necessary, since the
tests seem to pass without it. It's on the critical path for this longish-running
test, and it also breaks stuff with respect to __exposedProps__. Let's kill it.
This commit is contained in:
Bobby Holley 2012-08-17 23:14:55 -07:00
parent b528f5812a
commit 48b42305ee

View File

@ -124,8 +124,7 @@ ok(ctx.canvas === canvas, "ctx.canvas === canvas");
function isPixel(ctx, x,y, r,g,b,a, d) {
var pos = x + "," + y;
var colour = r + "," + g + "," + b + "," + a;
var pixel = SpecialPowers.unwrap(SpecialPowers.wrap(ctx)
.getImageData(x, y, 1, 1));
var pixel = ctx.getImageData(x, y, 1, 1);
var pr = pixel.data[0],
pg = pixel.data[1],
pb = pixel.data[2],