Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: LayoutTests/svg/custom/script-tests/SVGException.js

Issue 1017733003: [DO NOT LAND] Set @@toStringTag for DOM object prototypes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test expectations Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 description("Tests the properties of the exception thrown by rotateFromVector.") 1 description("Tests the properties of the exception thrown by rotateFromVector.")
2 2
3 var e; 3 var e;
4 try { 4 try {
5 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/ svg", "svg", null); 5 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/ svg", "svg", null);
6 var matrix = svgDoc.documentElement.createSVGMatrix(); 6 var matrix = svgDoc.documentElement.createSVGMatrix();
7 matrix.rotateFromVector(0, 0) 7 matrix.rotateFromVector(0, 0)
8 // raises a InvalidAccessError 8 // raises a InvalidAccessError
9 } catch (err) { 9 } catch (err) {
10 e = err; 10 e = err;
11 } 11 }
12 12
13 shouldBeEqualToString("e.toString()", "InvalidAccessError: Failed to execute 'ro tateFromVector' on 'SVGMatrix': Arguments cannot be zero."); 13 shouldBeEqualToString("e.toString()", "InvalidAccessError: Failed to execute 'ro tateFromVector' on 'SVGMatrix': Arguments cannot be zero.");
14 shouldBeEqualToString("Object.prototype.toString.call(e)", "[object DOMException ]"); 14 shouldBeEqualToString("Object.prototype.toString.call(e)", "[object DOMException ]");
15 shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object DO MExceptionPrototype]"); 15 shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object DO MException]");
16 shouldBeEqualToString("e.constructor.toString()", "function DOMException() { [na tive code] }"); 16 shouldBeEqualToString("e.constructor.toString()", "function DOMException() { [na tive code] }");
17 shouldBe("e.constructor", "window.DOMException"); 17 shouldBe("e.constructor", "window.DOMException");
18 18
19 var successfullyParsed = true; 19 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698