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"; |