Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-arc-negative-radius.html
bloba1810f53b5e1f51acf0fa6be782bf0529d750d0b
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 arc and arcTo with negative radii.");
13 var canvas = document.createElement("canvas");
14 var ctx = canvas.getContext('2d');
16 shouldNotThrow("ctx.arc(10, 10, 5, 0, 1, false)");
17 shouldNotThrow("ctx.arc(10, 10, 0, 0, 1, false)");
18 shouldThrow("ctx.arc(10, 10, -5, 0, 1, false)");
20 shouldNotThrow("ctx.arcTo(10, 10, 20, 20, 5)")
21 shouldNotThrow("ctx.arcTo(10, 10, 20, 20, 0)")
22 shouldThrow("ctx.arcTo(10, 10, 20, 20, -5)")
24 var path = new Path2D();
26 shouldNotThrow("path.arc(10, 10, 5, 0, 1, false)");
27 shouldNotThrow("path.arc(10, 10, 0, 0, 1, false)");
28 shouldThrow("path.arc(10, 10, -5, 0, 1, false)");
30 shouldNotThrow("path.arcTo(10, 10, 20, 20, 5)")
31 shouldNotThrow("path.arcTo(10, 10, 20, 20, 0)")
32 shouldThrow("path.arcTo(10, 10, 20, 20, -5)")
33 </script>
34 </body>
35 </html>