OLD | NEW |
1 description("Ensure that the constructor for Path object and dependent functions
exist."); | 1 description("Ensure that the constructor for Path object and dependent functions
exist."); |
2 | 2 |
3 shouldBe("typeof document.getElementById", '"function"'); | 3 shouldBe("typeof document.getElementById", '"function"'); |
4 | 4 |
5 var path = new Path2D(); | 5 var path = new Path2D(); |
6 shouldBeType("path", "Path2D"); | 6 shouldBeType("path", "Path2D"); |
7 shouldBe("typeof path.closePath", '"function"'); | 7 shouldBe("typeof path.closePath", '"function"'); |
8 shouldBe("typeof path.moveTo", '"function"'); | 8 shouldBe("typeof path.moveTo", '"function"'); |
9 shouldBe("typeof path.lineTo", '"function"'); | 9 shouldBe("typeof path.lineTo", '"function"'); |
10 shouldBe("typeof path.quadraticCurveTo", '"function"'); | 10 shouldBe("typeof path.quadraticCurveTo", '"function"'); |
11 shouldBe("typeof path.bezierCurveTo", '"function"'); | 11 shouldBe("typeof path.bezierCurveTo", '"function"'); |
12 shouldBe("typeof path.arcTo", '"function"'); | 12 shouldBe("typeof path.arcTo", '"function"'); |
13 shouldBe("typeof path.arc", '"function"'); | 13 shouldBe("typeof path.arc", '"function"'); |
14 shouldBe("typeof path.rect", '"function"'); | 14 shouldBe("typeof path.rect", '"function"'); |
| 15 shouldBe("typeof path.ellipse", '"function"'); |
OLD | NEW |