1 description("Tests the properties of the exception thrown by rotateFromVector.")
5 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/svg", "svg", null);
6 var matrix = svgDoc.documentElement.createSVGMatrix();
7 matrix.rotateFromVector(0, 0)
8 // raises a InvalidAccessError
13 shouldBeEqualToString("e.toString()", "InvalidAccessError: Failed to execute 'rotateFromVector' on 'SVGMatrix': Arguments cannot be zero.");
14 shouldBeEqualToString("Object.prototype.toString.call(e)", "[object DOMException]");
15 shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object DOMExceptionPrototype]");
16 shouldBeEqualToString("e.constructor.toString()", "function DOMException() { [native code] }");
17 shouldBe("e.constructor", "window.DOMException");
19 var successfullyParsed = true;