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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-path-constructors.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-path-constructors.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js b/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
index 487287f4d8f67af90c207bf78766efbcb4c62fc4..3412c3389d462ff3e9b236f7e2965e571ff8c62e 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
@@ -3,7 +3,7 @@ var ctx = document.createElement('canvas').getContext('2d');
debug("Test constructor Path().")
ctx.beginPath();
-var p1 = new Path();
+var p1 = new Path2D();
p1.rect(0,0,100,100);
ctx.fillStyle = 'yellow';
ctx.currentPath = p1;
@@ -18,7 +18,7 @@ debug("");
debug("Test constructor Path(DOMString) which takes a SVG data string.")
ctx.beginPath();
-var p2 = new Path("M100,0L200,0L200,100L100,100z");
+var p2 = new Path2D("M100,0L200,0L200,100L100,100z");
ctx.currentPath = p2;
ctx.fillStyle = 'blue';
ctx.fill();
@@ -32,7 +32,7 @@ debug("");
debug("Test constructor Path(Path) which takes another Path object.")
ctx.beginPath();
-var p3 = new Path(p1);
+var p3 = new Path2D(p1);
ctx.translate(200,0);
ctx.currentPath = p3;
ctx.fillStyle = 'green';
@@ -44,4 +44,4 @@ shouldBe("imgdata[4]", "0");
shouldBe("imgdata[5]", "128");
shouldBe("imgdata[6]", "0");
shouldBe("imgdata[7]", "255");
-debug("");
+debug("");

Powered by Google App Engine
This is Rietveld 408576698