Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Unified Diff: LayoutTests/fast/canvas/canvas-ellipse-360-winding-expected.html

Issue 14298022: Add support for new canvas ellipse method. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Complete degenerateEllipse. Make canvas-ellipse-zero-lineto.html cover various degenerate edge caseā€¦ Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/canvas-ellipse-360-winding-expected.html
diff --git a/LayoutTests/fast/canvas/canvas-ellipse-360-winding-expected.html b/LayoutTests/fast/canvas/canvas-ellipse-360-winding-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..6c755ad16a9cdaa789f7fd215b690a4d0af1d4e1
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-ellipse-360-winding-expected.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head></head>
+<body>
+<canvas id="mycanvas" width="300" height="150"></canvas>
+<script src="script-tests/js-ellipse-implementation.js"></script>
+<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);
+ ellipseUsingArc(ctx, 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>

Powered by Google App Engine
This is Rietveld 408576698