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

Unified Diff: LayoutTests/fast/canvas/canvas-ellipse-connecting-line.html

Issue 14298022: Add support for new canvas ellipse method. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make canvas-ellipse-360-winding.html for virtual/gpu pass. Created 7 years, 4 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-connecting-line.html
diff --git a/LayoutTests/fast/canvas/canvas-ellipse-connecting-line.html b/LayoutTests/fast/canvas/canvas-ellipse-connecting-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..b4ced504c1a873f0073411f2369389f50d7a086a
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-ellipse-connecting-line.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head></head>
+<body>
+<canvas id="mycanvas" width="300" height="300"></canvas>
+<script>
+var canvas = document.getElementById('mycanvas');
+var ctx = canvas.getContext('2d');
+
+ctx.fillStyle = '#0f0';
+ctx.fillRect(0, 0, canvas.width, canvas.height);
+ctx.lineJoin = 'bevel';
+ctx.lineWidth = 12;
+ctx.beginPath();
+ctx.ellipse(200, 150, 40, 80, -Math.PI / 6, Math.PI / 2, -Math.PI / 2, false);
+ctx.ellipse(100, 150, 40, 80, Math.PI / 6, Math.PI / 2, -Math.PI / 2, false);
+ctx.stroke();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698