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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-ellipse-negative-radius.html

Issue 2826773002: Rename CanvasPathMethods to CanvasPath (Closed)
Patch Set: x Created 3 years, 8 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
1 <script src="../../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script> 2 <script src="../../resources/testharnessreport.js"></script>
3 <body> 3 <body>
4 <script> 4 <script>
5 test(function(t) { 5 test(function(t) {
6 var canvas = document.createElement('canvas'); 6 var canvas = document.createElement('canvas');
7 var ctx = canvas.getContext('2d'); 7 var ctx = canvas.getContext('2d');
8 8
9 ctx.ellipse(10, 10, 10, 5, 0, 0, 1, false); 9 ctx.ellipse(10, 10, 10, 5, 0, 0, 1, false);
10 ctx.ellipse(10, 10, 10, 0, 0, 0, 1, false); 10 ctx.ellipse(10, 10, 10, 0, 0, 0, 1, false);
11 ctx.ellipse(10, 10, -0, 5, 0, 0, 1, false); 11 ctx.ellipse(10, 10, -0, 5, 0, 0, 1, false);
12 12
13 assert_throws(null, function() {ctx.ellipse(10, 10, -2, 5, 0, 0, 1, false);} ); 13 assert_throws(null, function() {ctx.ellipse(10, 10, -2, 5, 0, 0, 1, false);} );
14 assert_throws(null, function() {ctx.ellipse(10, 10, 0, -1.5, 0, 0, 1, false) ;}); 14 assert_throws(null, function() {ctx.ellipse(10, 10, 0, -1.5, 0, 0, 1, false) ;});
15 assert_throws(null, function() {ctx.ellipse(10, 10, -2, -5, 0, 0, 1, false); }); 15 assert_throws(null, function() {ctx.ellipse(10, 10, -2, -5, 0, 0, 1, false); });
16 16
17 // FIXME: When this is exposed on Path as well as CanvasRenderingContext2D, add tests for Path as well. 17 // FIXME: When this is exposed on Path as well as CanvasRenderingContext2D, add tests for Path as well.
18 }, 'Tests CanvasPathMethods ellipse with negative radii.'); 18 }, 'Tests CanvasPath ellipse with negative radii.');
19 </script> 19 </script>
20 </body> 20 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698