blob: 397120c35f16d04354f71b010a50af54ba2eafcf [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<canvas id="canvas" width="200" height="200"></canvas>
<script>
description("Ensure that the constructor for Path object and dependent functions exist.");
shouldBe("typeof document.getElementById", '"function"');
var path = new Path2D();
shouldBeType("path", "Path2D");
shouldBe("typeof path.closePath", '"function"');
shouldBe("typeof path.moveTo", '"function"');
shouldBe("typeof path.lineTo", '"function"');
shouldBe("typeof path.quadraticCurveTo", '"function"');
shouldBe("typeof path.bezierCurveTo", '"function"');
shouldBe("typeof path.arcTo", '"function"');
shouldBe("typeof path.arc", '"function"');
shouldBe("typeof path.rect", '"function"');</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>