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

Side by Side Diff: LayoutTests/fast/canvas/ellipse360.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head></head>
4 <body>
5 <canvas id="mycanvas" width="400" height="400"></canvas>
6 <script>
7 var canvas = document.getElementById('mycanvas');
8 var ctx = canvas.getContext('2d');
9 ctx.lineWidth = 10;
10 ctx.beginPath();
11 ctx.moveTo(0, 100);
12 var cx = 200, cy = 200, rx = 150, ry = 100;
13 ctx.ellipse(cx, cy, rx, ry, Math.PI / 6, -Math.PI, Math.PI, false);
14 ctx.lineTo(0, 300);
15 ctx.stroke();
16 </script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698