| Index: third_party/WebKit/LayoutTests/fast/canvas/arc360.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/arc360.html b/third_party/WebKit/LayoutTests/fast/canvas/arc360.html
|
| index 139bc779ff5f87bdb4f4f1070729cc918731f470..1d4704aaf49317d951cfccd6d467cbe459c3f853 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/arc360.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/arc360.html
|
| @@ -1,18 +1,16 @@
|
| -<body>
|
| -<p>Test canvas arc() start / end points when the arc is >= 360 degrees. The result should be a circle with two line segments connected to the left hand side, towards the top left and bottom left corners.
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <canvas id="mycanvas" width="400" height="400"></canvas>
|
| <script>
|
| -if (window.testRunner)
|
| - testRunner.dumpAsTextWithPixelResults();
|
| -
|
| -var canvas = document.getElementById('mycanvas');
|
| -var ctx = canvas.getContext('2d');
|
| -var cx = 200, cy = 200, radius = 100;
|
| -ctx.lineWidth = 10;
|
| -ctx.beginPath();
|
| -ctx.moveTo(0, 100);
|
| -ctx.arc(cx, cy, radius, -Math.PI, Math.PI, false);
|
| -ctx.lineTo(0, 300);
|
| -ctx.stroke();
|
| +test(function(t) {
|
| + var canvas = document.getElementById('mycanvas');
|
| + var ctx = canvas.getContext('2d');
|
| + var cx = 200, cy = 200, radius = 100;
|
| + ctx.lineWidth = 10;
|
| + ctx.beginPath();
|
| + ctx.moveTo(0, 100);
|
| + ctx.arc(cx, cy, radius, -Math.PI, Math.PI, false);
|
| + ctx.lineTo(0, 300);
|
| + ctx.stroke();
|
| +}, 'Test canvas arc() start / end points when the arc is >= 360 degrees. The result should be a circle with two line segments connected to the left hand side, towards the top left and bottom left corners.');
|
| </script>
|
| -</body>
|
|
|