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

Side by Side 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 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 src="script-tests/js-ellipse-implementation.js"></script>
7 <script>
8 var canvas = document.getElementById('mycanvas');
9 var ctx = canvas.getContext('2d');
10 ctx.lineWidth = 10;
11 ctx.beginPath();
12 ctx.moveTo(0, 100);
13 var cx = 200, cy = 200, rx = 150, ry = 100;
14 ellipseUsingArc(ctx, cx, cy, rx, ry, Math.PI / 6, -Math.PI, Math.PI, false);
15 ctx.lineTo(0, 300);
16 ctx.stroke();
17 </script>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698