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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.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-isPointInPath-winding.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js b/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js
index 8dc6d26dab0598190c055504a5996639c7a40e2d..78f7d02551bb157f65597897ea923d8d71772304 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js
@@ -34,7 +34,7 @@ function prepareTestScenario() {
ctx.beginPath();
debug('Testing default isPointInPath with Path object');
- path = new Path();
+ path = new Path2D();
path.rect(0, 0, 100, 100);
path.rect(25, 25, 50, 50);
shouldBeTrue("ctx.isPointInPath(path, 50, 50)");
@@ -43,14 +43,14 @@ function prepareTestScenario() {
debug('');
debug('Testing nonzero isPointInPath with Path object');
- path = new Path();
+ path = new Path2D();
path.rect(0, 0, 100, 100);
path.rect(25, 25, 50, 50);
shouldBeTrue("ctx.isPointInPath(path, 50, 50, 'nonzero')");
debug('');
debug('Testing evenodd isPointInPath with Path object');
- path = new Path();
+ path = new Path2D();
path.rect(0, 0, 100, 100);
path.rect(25, 25, 50, 50);
shouldBeFalse("ctx.isPointInPath(path, 50, 50, 'evenodd')");

Powered by Google App Engine
This is Rietveld 408576698