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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js

Issue 178673002: Rename Path to Path2D (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@path
Patch Set: Merge to head which includes isPoint and addPath changes. Created 6 years, 9 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-isPointInStroke-with-path.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js b/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js
index 162749b323d13bedf9b3c956c2052855ed6b9039..84764b025737f95fd033358e44ba9868b95e883a 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-isPointInStroke-with-path.js
@@ -6,7 +6,7 @@ document.body.appendChild(ctx.canvas);
ctx.strokeStyle = '#0ff';
// Create new path.
-var path = new Path();
+var path = new Path2D();
path.rect(20,20,100,100);
debug("Initial behavior: lineWidth = 1.0")
@@ -53,7 +53,7 @@ shouldBeFalse("ctx.isPointInStroke(path,114,70)");
debug("");
debug("Check lineJoin = 'bevel'");
-path = new Path();
+path = new Path2D();
path.moveTo(10,10);
path.lineTo(110,20);
path.lineTo(10,30);
@@ -73,7 +73,7 @@ shouldBeFalse("ctx.isPointInStroke(path,113,20)");
debug("");
debug("Check lineCap = 'butt'");
-path = new Path();
+path = new Path2D();
path.moveTo(10,10);
path.lineTo(110,10);
ctx.lineCap = "butt";

Powered by Google App Engine
This is Rietveld 408576698