| 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 3412c3389d462ff3e9b236f7e2965e571ff8c62e..1df7357bea75675477c45ee71b9dec35d9f5d2d3 100644
|
| --- a/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
|
| +++ b/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
|
| @@ -6,8 +6,7 @@ ctx.beginPath();
|
| var p1 = new Path2D();
|
| p1.rect(0,0,100,100);
|
| ctx.fillStyle = 'yellow';
|
| -ctx.currentPath = p1;
|
| -ctx.fill();
|
| +ctx.fill(p1);
|
| var imageData = ctx.getImageData(0, 0, 100, 100);
|
| var imgdata = imageData.data;
|
| shouldBe("imgdata[4]", "255");
|
| @@ -19,9 +18,8 @@ debug("");
|
| debug("Test constructor Path(DOMString) which takes a SVG data string.")
|
| ctx.beginPath();
|
| var p2 = new Path2D("M100,0L200,0L200,100L100,100z");
|
| -ctx.currentPath = p2;
|
| ctx.fillStyle = 'blue';
|
| -ctx.fill();
|
| +ctx.fill(p2);
|
| imageData = ctx.getImageData(100, 0, 100, 100);
|
| imgdata = imageData.data;
|
| shouldBe("imgdata[4]", "0");
|
| @@ -34,10 +32,9 @@ debug("Test constructor Path(Path) which takes another Path object.")
|
| ctx.beginPath();
|
| var p3 = new Path2D(p1);
|
| ctx.translate(200,0);
|
| -ctx.currentPath = p3;
|
| ctx.fillStyle = 'green';
|
| +ctx.fill(p3);
|
| ctx.translate(-200,0);
|
| -ctx.fill();
|
| imageData = ctx.getImageData(200, 0, 100, 100);
|
| imgdata = imageData.data;
|
| shouldBe("imgdata[4]", "0");
|
|
|