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