blob: ecd9eadc2c3e27ad56eb96f605ad8e0a1e0f0a82 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../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>
<script src="../../resources/js-test-post.js"></script>
</body>