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

Unified Diff: LayoutTests/fast/canvas/arc360.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/canvas/canvas-ellipse.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/arc360.html
diff --git a/LayoutTests/fast/canvas/arc360.html b/LayoutTests/fast/canvas/arc360.html
index 43d06fa6895870cb1ab9942f324bfdaf46bde032..9be68306ad2bdc3c0a7ff4bf36304be6d7577b49 100644
--- a/LayoutTests/fast/canvas/arc360.html
+++ b/LayoutTests/fast/canvas/arc360.html
@@ -8,13 +8,10 @@ if (window.testRunner)
var canvas = document.getElementById('mycanvas');
var ctx = canvas.getContext('2d');
var cx = 200, cy = 200, radius = 100;
-function deg2rad(x) {
- return x * 3.141592653589 / 180;
-}
ctx.lineWidth = 10;
ctx.beginPath();
ctx.moveTo(0, 100);
-ctx.arc(cx, cy, radius, deg2rad(-180), deg2rad(180), false);
+ctx.arc(cx, cy, radius, -Math.PI, Math.PI, false);
ctx.lineTo(0, 300);
ctx.stroke();
</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/canvas/canvas-ellipse.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698