OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <script> | 8 <script> |
9 var canvas = document.createElement("canvas"); | 9 var canvas = document.createElement("canvas"); |
10 var context = canvas.getContext("2d"); | 10 var context = canvas.getContext("2d"); |
11 | 11 |
12 shouldNotThrow("context.fill()"); | 12 shouldNotThrow("context.fill()"); |
13 shouldNotThrow("context.fill('nonzero')"); | 13 shouldNotThrow("context.fill('nonzero')"); |
14 shouldThrow("context.fill('randomstring')"); | 14 shouldThrow("context.fill('randomstring')"); |
15 | 15 |
16 shouldNotThrow("context.clip()"); | 16 shouldNotThrow("context.clip()"); |
17 shouldNotThrow("context.clip('nonzero')"); | 17 shouldNotThrow("context.clip('nonzero')"); |
18 shouldThrow("context.clip('randomstring')"); | 18 shouldThrow("context.clip('randomstring')"); |
19 | 19 |
20 shouldNotThrow("context.isPointInPath(0, 0)"); | 20 shouldNotThrow("context.isPointInPath(0, 0)"); |
21 shouldNotThrow("context.isPointInPath(0, 0, 'nonzero')"); | 21 shouldNotThrow("context.isPointInPath(0, 0, 'nonzero')"); |
22 shouldThrow("context.isPointInPath(0, 0, 'randomstring')"); | 22 shouldThrow("context.isPointInPath(0, 0, 'randomstring')"); |
23 </script> | 23 </script> |
24 | 24 |
25 </body> | 25 </body> |
26 | 26 |
OLD | NEW |