summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/canvas')
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/toBlob/canvas-toBlob-defaultpng.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/toBlob/canvas-toBlob-defaultpng.html b/third_party/WebKit/LayoutTests/fast/canvas/toBlob/canvas-toBlob-defaultpng.html
index 6f09ee8..c2fec4c 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/toBlob/canvas-toBlob-defaultpng.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/toBlob/canvas-toBlob-defaultpng.html
@@ -16,10 +16,11 @@ var ctx2 = canvas2.getContext("2d");
var newImg = new Image();
newImg.onload = function() {
- ctx2.drawImage(newImg, 0, 0, 150, 75);
+ // 300x150 is the default size of the canvas, which is the source of the newImg.
+ ctx2.drawImage(newImg, 0, 0, 300, 150);
var imageData1 = ctx.getImageData(0, 0, 150, 75).data;
- var imageData2 = ctx.getImageData(0, 0, 150, 75).data;
+ var imageData2 = ctx2.getImageData(0, 0, 150, 75).data;
var imageMatched = true;
for (var i = 1; i < imageData1.length; i++)
{