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

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

Issue 2671853004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections Created 3 years, 10 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
Index: third_party/WebKit/LayoutTests/fast/canvas/alpha.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/alpha.js b/third_party/WebKit/LayoutTests/fast/canvas/alpha.js
deleted file mode 100644
index c546db7716ef2ef322125648c29f10a4ad88737e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/alpha.js
+++ /dev/null
@@ -1,50 +0,0 @@
-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");
-var canvas4 = document.getElementById("canvas4");
-
-var ctx1 = canvas1.getContext("2d");
-var ctx2 = canvas2.getContext("2d", {} );
-var ctx3 = canvas3.getContext("2d", { alpha: false } );
-var ctx4 = canvas4.getContext("2d", { alpha: true } );
-
-shouldBe("ctx1.getContextAttributes().alpha", "true");
-var imgData1 = ctx1.getImageData(0, 0, 1, 1);
-shouldBe("imgData1.data[0]", "0");
-shouldBe("imgData1.data[1]", "0");
-shouldBe("imgData1.data[2]", "0");
-shouldBe("imgData1.data[3]", "0");
-
-shouldBe("ctx2.getContextAttributes().alpha", "true");
-var imgData2 = ctx2.getImageData(0, 0, 1, 1);
-shouldBe("imgData2.data[0]", "0");
-shouldBe("imgData2.data[1]", "0");
-shouldBe("imgData2.data[2]", "0");
-shouldBe("imgData2.data[3]", "0");
-
-shouldBe("ctx3.getContextAttributes().alpha", "false");
-
-shouldBe("ctx4.getContextAttributes().alpha", "true");
-var imgData4 = ctx4.getImageData(0, 0, 1, 1);
-shouldBe("imgData4.data[0]", "0");
-shouldBe("imgData4.data[1]", "0");
-shouldBe("imgData4.data[2]", "0");
-shouldBe("imgData4.data[3]", "0");
-
-// Check that mutating the returned value of getContextAttributes() doesn't
-// affect the existing canvas, or the values of subsequent calls to
-// getContextAttributes().
-var attrs = ctx4.getContextAttributes();
-shouldBe("attrs.alpha", "true");
-attrs.alpha = false;
-var imgData4 = ctx4.getImageData(0, 0, 1, 1);
-shouldBe("ctx4.getContextAttributes().alpha", "true");
-shouldBe("imgData4.data[0]", "0");
-shouldBe("imgData4.data[1]", "0");
-shouldBe("imgData4.data[2]", "0");
-shouldBe("imgData4.data[3]", "0");
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/alpha.html ('k') | third_party/WebKit/LayoutTests/fast/canvas/alpha-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698