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

Unified Diff: LayoutTests/fast/canvas/canvas-ellipse-circumference.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-circumference.html
diff --git a/LayoutTests/fast/canvas/canvas-arc-circumference.html b/LayoutTests/fast/canvas/canvas-ellipse-circumference.html
similarity index 91%
copy from LayoutTests/fast/canvas/canvas-arc-circumference.html
copy to LayoutTests/fast/canvas/canvas-ellipse-circumference.html
index 1a8695bb08d8fb5e607a0499a2c18d3e50d4cb29..552a12dd35daaf7db16cbf5d2529495262d72ad8 100644
--- a/LayoutTests/fast/canvas/canvas-arc-circumference.html
+++ b/LayoutTests/fast/canvas/canvas-ellipse-circumference.html
@@ -43,7 +43,7 @@ for (var i = 0; i < startAngles.length * 2; i++) {
ctx.save();
ctx.beginPath();
ctx.moveTo(0, 2);
- ctx.arc(18, 15, 10, startAngle, startAngle + (sweepAngles[j] * sign), anticlockwise);
+ ctx.ellipse(18, 15, 8, 12, Math.PI / 4, startAngle, startAngle + (sweepAngles[j] * sign), anticlockwise);
ctx.lineTo(0, 28);
ctx.stroke();
ctx.restore();
@@ -56,4 +56,3 @@ for (var i = 0; i < startAngles.length * 2; i++) {
</script>
</body>
</html>
-

Powered by Google App Engine
This is Rietveld 408576698