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

Side by Side Diff: LayoutTests/fast/dom/DOMException/resources/RangeException.js

Issue 14705009: Remove RangeException interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectation Created 7 years, 7 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
(Empty)
1 description("Tests the properties of the RangeException object.")
2
3 var e;
4 try {
5 document.createRange().setStartAfter(document, 0);
6 // raises INVALID_NODE_TYPE_ERR
7 } catch (err) {
8 e = err;
9 }
10
11 shouldBeEqualToString("e.toString()", "Error: INVALID_NODE_TYPE_ERR: DOM Range E xception 2");
12 shouldBeEqualToString("Object.prototype.toString.call(e)", "[object RangeExcepti on]");
13 shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object Ra ngeExceptionPrototype]");
14 shouldBeEqualToString("e.constructor.toString()", "[object RangeExceptionConstru ctor]");
15 shouldBe("e.constructor", "window.RangeException");
16 shouldBe("e.INVALID_NODE_TYPE_ERR", "e.constructor.INVALID_NODE_TYPE_ERR");
17 shouldBe("e.BAD_BOUNDARYPOINTS_ERR", "1");
18 shouldBe("e.INVALID_NODE_TYPE_ERR", "2");
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/DOMException/RangeException-expected.txt ('k') | LayoutTests/fast/dom/Range/range-compareNode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698