blob: 2bb41f04476f8bef69cecd808448774ef2ca4f53 [file] [log] [blame]
<!DOCTYPE html>
<title>Test CanvasWindingRule enumeration</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
var canvas = document.createElement("canvas");
var context = canvas.getContext("2d");
context.fill();
context.fill('nonzero');
assert_throws(new TypeError(), function() { context.fill('randomstring'); });
context.clip();
context.clip('nonzero');
assert_throws(new TypeError(), function() { context.clip('randomstring'); });
context.isPointInPath(0, 0);
context.isPointInPath(0, 0, 'nonzero');
assert_throws(new TypeError(), function() { context.isPointInPath(0, 0, 'randomstring'); });
});
</script>