4 <script src=
"../../resources/js-test.js"></script>
9 var canvas
= document
.createElement("canvas");
10 var context
= canvas
.getContext("2d");
12 shouldNotThrow("context.fill()");
13 shouldNotThrow("context.fill('nonzero')");
14 shouldThrow("context.fill('randomstring')");
16 shouldNotThrow("context.clip()");
17 shouldNotThrow("context.clip('nonzero')");
18 shouldThrow("context.clip('randomstring')");
20 shouldNotThrow("context.isPointInPath(0, 0)");
21 shouldNotThrow("context.isPointInPath(0, 0, 'nonzero')");
22 shouldThrow("context.isPointInPath(0, 0, 'randomstring')");