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

Unified Diff: LayoutTests/fast/dom/DOMError-constructor-expected.txt

Issue 254823007: Make DOMError constructible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline additional test Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/DOMError-constructor-expected.txt
diff --git a/LayoutTests/fast/dom/DOMError-constructor-expected.txt b/LayoutTests/fast/dom/DOMError-constructor-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6223d09e6b0704f1b1323e7886a1a08daa110078
--- /dev/null
+++ b/LayoutTests/fast/dom/DOMError-constructor-expected.txt
@@ -0,0 +1,16 @@
+Tests that DOMError is constructible.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS error = new DOMError('NotFoundError', 'This item was not found.') did not throw exception.
+PASS error.name is "NotFoundError"
+PASS error.message is "This item was not found."
+PASS error = new DOMError('IndexSizeError') did not throw exception.
+PASS error.name is "IndexSizeError"
+PASS error.message is ""
+PASS new DOMError() threw exception TypeError: Failed to construct 'DOMError': 1 argument required, but only 0 present..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698