<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/js-test.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>