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

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

Issue 14972014: Remove an overloaded strokeRect in <canvas> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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-strokeRect.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-strokeRect.js b/LayoutTests/fast/canvas/script-tests/canvas-strokeRect.js
index a1eabcfeb16a6cf05a945ae8cb4c32ed69c10282..75a6f5da0f0dc66fc04ab8495eb11047ac37a115 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-strokeRect.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-strokeRect.js
@@ -5,7 +5,8 @@ var ctx = document.createElement('canvas').getContext('2d');
debug("Test canvas.strokeRect() with solid green.");
ctx.beginPath();
ctx.strokeStyle = 'green';
-ctx.strokeRect(50, 0, 100, 100, 100);
+ctx.lineWidth = 100;
+ctx.strokeRect(50, 0, 100, 100);
var imageData = ctx.getImageData(1, 1, 98, 98);
var imgdata = imageData.data;
@@ -25,7 +26,8 @@ ctx2.fillStyle = 'green';
ctx2.fillRect(0, 0, 100, 100);
var pattern = ctx.createPattern(canvas2, 'repeat');
ctx.strokeStyle = 'pattern';
-ctx.strokeRect(50, 0, 100, 100, 100);
+ctx.lineWidth = 100;
+ctx.strokeRect(50, 0, 100, 100);
imageData = ctx.getImageData(1, 1, 98, 98);
imgdata = imageData.data;
@@ -41,7 +43,8 @@ var gradient = ctx.createLinearGradient(0, 0, 0, 100);
gradient.addColorStop(0, "green");
gradient.addColorStop(1, "green");
ctx.strokeStyle = 'gradient';
-ctx.strokeRect(50, 0, 100, 100, 100);
+ctx.lineWidth = 100;
+ctx.strokeRect(50, 0, 100, 100);
imageData = ctx.getImageData(1, 1, 98, 98);
imgdata = imageData.data;

Powered by Google App Engine
This is Rietveld 408576698