Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-ellipse-negative-radius.html
blobf07b5314b637a6856537d0aae789f2258f765e68
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
10 <script>
11 description("Tests CanvasPathMethods ellipse with negative radii.");
13 var canvas = document.createElement("canvas");
14 var ctx = canvas.getContext('2d');
16 shouldNotThrow("ctx.ellipse(10, 10, 10, 5, 0, 0, 1, false)");
17 shouldNotThrow("ctx.ellipse(10, 10, 10, 0, 0, 0, 1, false)");
18 shouldNotThrow("ctx.ellipse(10, 10, -0, 5, 0, 0, 1, false)");
20 shouldThrow("ctx.ellipse(10, 10, -2, 5, 0, 0, 1, false)");
21 shouldThrow("ctx.ellipse(10, 10, 0, -1.5, 0, 0, 1, false)");
22 shouldThrow("ctx.ellipse(10, 10, -2, -5, 0, 0, 1, false)");
24 // FIXME: When this is exposed on Path as well as CanvasRenderingContext2D, add tests for Path as well.
25 </script>
26 </body>
27 </html>