OLD | NEW |
| (Empty) |
1 description("Tests whether immutable properties can not be modified."); | |
2 | |
3 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/svg"
, "svg", null); | |
4 | |
5 // 'viewport' attribute is immutable (Spec: The object itself and its contents a
re both readonly.) | |
6 var viewport = svgDoc.documentElement.viewport; | |
7 | |
8 shouldBe("viewport.x", "0"); | |
9 viewport.x = 100; | |
10 | |
11 shouldBe("viewport.x", "100"); | |
12 shouldBe("svgDoc.documentElement.viewport.x", "0"); | |
13 | |
14 var successfullyParsed = true; | |
OLD | NEW |