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

Unified Diff: LayoutTests/fast/canvas/ellipse360-expected.html

Issue 14298022: Add support for new canvas ellipse method. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Match addEllipse impl to addArc style. Add 4 more layout tests. 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/ellipse360-expected.html
diff --git a/LayoutTests/fast/canvas/ellipse360-expected.html b/LayoutTests/fast/canvas/ellipse360-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..4a64a1e52041843f238537c27554465ef9197a0c
--- /dev/null
+++ b/LayoutTests/fast/canvas/ellipse360-expected.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head></head>
+<body>
+<canvas id="mycanvas" width="400" height="400"></canvas>
+<script src="script-tests/js-ellipse-implementation.js"></script>
+<script>
+var canvas = document.getElementById('mycanvas');
+var ctx = canvas.getContext('2d');
+ctx.lineWidth = 10;
+ctx.beginPath();
+ctx.moveTo(0, 100);
+var cx = 200, cy = 200, rx = 150, ry = 100;
+ellipseUsingArc(ctx, cx, cy, rx, ry, Math.PI / 6, -Math.PI, Math.PI, false);
+ctx.lineTo(0, 300);
+ctx.stroke();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698