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

Unified Diff: LayoutTests/fast/dom/HTMLElement/set-invalid-value.html

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/set-invalid-value.html
diff --git a/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html b/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html
index f2aad769a36083bc4bae2380fe4fa5016d629ca9..3d5fd44a9fe1285d38bac57ec1eb4432bee1634c 100644
--- a/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html
+++ b/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html
@@ -11,13 +11,13 @@
<script>
description('When contentEditable is set to invalid string, SYNTAX_ERR exception (code: 12) must be raised.')
-shouldThrow("document.getElementById('div').contentEditable = 'abc'", '"Error: SyntaxError: DOM Exception 12"');
+shouldThrow("document.getElementById('div').contentEditable = 'abc'", '"SyntaxError: An invalid or illegal string was specified."');
shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
shouldBe('document.getElementById("div").contentEditable', '"true"');
shouldBe('document.getElementById("div").isContentEditable', 'true');
shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-shouldThrow("document.getElementById('div').contentEditable = ''", '"Error: SyntaxError: DOM Exception 12"');
+shouldThrow("document.getElementById('div').contentEditable = ''", '"SyntaxError: An invalid or illegal string was specified."');
shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
shouldBe('document.getElementById("div").contentEditable', '"true"');
shouldBe('document.getElementById("div").isContentEditable', 'true');

Powered by Google App Engine
This is Rietveld 408576698