blob: 73610aa9e1d2e7b612a3abde870b365e58467031 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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"');
shouldBe("typeof path.ellipse", '"function"');
|