Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: LayoutTests/fast/canvas/alpha.js

Issue 200003002: Canvas element that use the alpha attribute don't display correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/alpha.js
diff --git a/LayoutTests/fast/canvas/alpha.js b/LayoutTests/fast/canvas/alpha.js
index a649c4daaecc6b8cde33899c9abe61f08683e8e4..c546db7716ef2ef322125648c29f10a4ad88737e 100644
--- a/LayoutTests/fast/canvas/alpha.js
+++ b/LayoutTests/fast/canvas/alpha.js
@@ -1,5 +1,8 @@
description("Series of tests for canvas alpha");
+if (window.testRunner)
+ testRunner.dumpAsTextWithPixelResults();
+
var canvas1 = document.getElementById("canvas1");
var canvas2 = document.getElementById("canvas2");
var canvas3 = document.getElementById("canvas3");
@@ -25,11 +28,6 @@ shouldBe("imgData2.data[2]", "0");
shouldBe("imgData2.data[3]", "0");
shouldBe("ctx3.getContextAttributes().alpha", "false");
-var imgData3 = ctx3.getImageData(0, 0, 1, 1);
-shouldBe("imgData3.data[0]", "0");
-shouldBe("imgData3.data[1]", "0");
-shouldBe("imgData3.data[2]", "0");
-shouldBe("imgData3.data[3]", "255");
shouldBe("ctx4.getContextAttributes().alpha", "true");
var imgData4 = ctx4.getImageData(0, 0, 1, 1);
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698