OLD | NEW |
---|---|
1 <!DOCTYPE HTML> | 1 <!DOCTYPE html> |
2 <html> | 2 <title>Test CanvasWindingRule enumeration</title> |
3 <head> | 3 |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
5 </head> | 5 <script src="../../resources/testharnessreport.js"></script> |
6 <body> | |
7 | 6 |
8 <script> | 7 <script> |
9 var canvas = document.createElement("canvas"); | 8 test(function() { |
10 var context = canvas.getContext("2d"); | 9 » var canvas = document.createElement("canvas"); |
Srirama
2016/09/14 10:22:47
Looks like tabs were used, please use spaces inste
Abhishek Kanike
2016/09/14 10:32:25
Done.
| |
10 » var context = canvas.getContext("2d"); | |
11 | 11 |
12 shouldNotThrow("context.fill()"); | 12 » context.fill(); |
13 shouldNotThrow("context.fill('nonzero')"); | 13 » context.fill('nonzero'); |
14 shouldThrow("context.fill('randomstring')"); | 14 » assert_throws(new TypeError(), function() { context.fill('randomstring') ; }); |
15 | 15 |
16 shouldNotThrow("context.clip()"); | 16 » context.clip(); |
17 shouldNotThrow("context.clip('nonzero')"); | 17 » context.clip('nonzero'); |
18 shouldThrow("context.clip('randomstring')"); | 18 » assert_throws(new TypeError(), function() { context.clip('randomstring') ; }); |
19 | 19 |
20 shouldNotThrow("context.isPointInPath(0, 0)"); | 20 » context.isPointInPath(0, 0); |
21 shouldNotThrow("context.isPointInPath(0, 0, 'nonzero')"); | 21 » context.isPointInPath(0, 0, 'nonzero'); |
22 shouldThrow("context.isPointInPath(0, 0, 'randomstring')"); | 22 » assert_throws(new TypeError(), function() { context.isPointInPath(0, 0, 'randomstring'); }); |
23 </script> | 23 }); |
24 | 24 </script> |
25 </body> | |
26 | |
OLD | NEW |