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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js

Issue 226953004: Remove get/set currentPath in canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js b/LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js
deleted file mode 100644
index 31fab8d3870c481b292a3e220381359820b5bea0..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js
+++ /dev/null
@@ -1,18 +0,0 @@
-description("Series of tests to ensure that currentPath does not take non-Path values.");
-var ctx = document.createElement('canvas').getContext('2d');
-ctx.fillStyle = "green";
-ctx.beginPath();
-ctx.rect(0,0,100,100);
-
-ctx.currentPath = null;
-ctx.currentPath = 0;
-ctx.currentPath = {};
-ctx.currentPath = new Array();
-ctx.currentPath = undefined;
-
-ctx.fill();
-var imageData = ctx.getImageData(50, 50, 1, 1);
-var imgdata = imageData.data;
-shouldBe("imgdata[0]", "0");
-shouldBe("imgdata[1]", "128");
-shouldBe("imgdata[2]", "0");

Powered by Google App Engine
This is Rietveld 408576698