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