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

Unified Diff: LayoutTests/fast/dom/script-tests/dataset.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/script-tests/dataset.js
diff --git a/LayoutTests/fast/dom/script-tests/dataset.js b/LayoutTests/fast/dom/script-tests/dataset.js
index f14a1390b43f8d06db1200821c25f9922ac44174..180202d4ab2d1323234a69677875291c3fbf8141 100644
--- a/LayoutTests/fast/dom/script-tests/dataset.js
+++ b/LayoutTests/fast/dom/script-tests/dataset.js
@@ -52,9 +52,9 @@ shouldBeTrue("testSet('', 'data-')");
shouldBeTrue("testSet('\xE0', 'data-\xE0')");
debug("");
-shouldThrow("testSet('-foo', 'dummy')", "'Error: SyntaxError: DOM Exception 12'");
-shouldThrow("testSet('foo\x20', 'dummy')", "'Error: InvalidCharacterError: DOM Exception 5'");
-shouldThrow("testSet('foo\uF900', 'dummy')", "'Error: InvalidCharacterError: DOM Exception 5'");
+shouldThrow("testSet('-foo', 'dummy')", "'SyntaxError: An invalid or illegal string was specified.'");
+shouldThrow("testSet('foo\x20', 'dummy')", "'InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name.'");
+shouldThrow("testSet('foo\uF900', 'dummy')", "'InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name.'");
debug("");
function testDelete(attr, prop)

Powered by Google App Engine
This is Rietveld 408576698