Index: LayoutTests/fast/canvas/canvas-ellipse-360-winding.html |
diff --git a/LayoutTests/fast/canvas/canvas-ellipse-360-winding.html b/LayoutTests/fast/canvas/canvas-ellipse-360-winding.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..55c0d931b679610c667fe000ca5db7c3cd7cb6e0 |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/canvas-ellipse-360-winding.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<html> |
+<head></head> |
+<body> |
+<canvas id="mycanvas" width="300" height="150"></canvas> |
+<script> |
+var canvas = document.getElementById('mycanvas'); |
+var ctx = canvas.getContext('2d'); |
+ |
+var r; |
+var anticlockwise = true; |
+ctx.beginPath(); |
+for (r = 200; r >= 10; r -= 20) { |
+ ctx.moveTo(150 + r, 75); |
+ ctx.ellipse(150, 75, r, r * 1.2, 0, 0, Math.PI * 2, anticlockwise); |
+ ctx.closePath(); |
+ anticlockwise = !anticlockwise; |
+} |
+ctx.fillStyle = 'rgba(0, 255, 0, 1)'; |
+ctx.strokeStyle = 'rgba(0, 255, 0, 1)'; |
+ctx.fill(); |
+ctx.stroke(); |
+</script> |
+</body> |
+</html> |