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

Unified Diff: LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js
diff --git a/LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js b/LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js
index ddc1d161e1d99fa1bb147522b993eb03a178b158..586ba7ba437a8cd41d342f9fa4e38343e1eff625 100644
--- a/LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js
+++ b/LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js
@@ -5,5 +5,5 @@ var div = document.createElement("div");
shouldBeUndefined("div.insertAdjacentHTML('beforeBegin', 'text')");
shouldBeUndefined("div.insertAdjacentHTML('afterEnd', 'text')");
-shouldThrow("div.insertAdjacentHTML('FOO', 'text')", '"Error: SyntaxError: DOM Exception 12"');
-shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", '"Error: NoModificationAllowedError: DOM Exception 7"');
+shouldThrow("div.insertAdjacentHTML('FOO', 'text')", '"SyntaxError: An invalid or illegal string was specified."');
+shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", '"NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed."');

Powered by Google App Engine
This is Rietveld 408576698