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

Unified Diff: LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.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/HTMLProgressElement/script-tests/set-progress-properties.js
diff --git a/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js b/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js
index 0f76bdf563210b6da17d6adbc3eba07f4aa819be..102af84d9ac7b15d6c997d9ce6f363d589f1ba6e 100644
--- a/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js
+++ b/LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-properties.js
@@ -27,16 +27,16 @@ shouldBe('p.value', '0');
shouldBe('p.position', '0');
debug("Set invalid value, should throw");
-shouldThrow('p.value = "200A";', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('p.value = "200A";', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set invalid max, should throw");
-shouldThrow('p.max = "max";', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('p.max = "max";', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set max to Infinity, should throw");
-shouldThrow('p.max = Infinity;', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('p.max = Infinity;', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set value to NaN, should throw");
-shouldThrow('p.value = NaN;', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('p.value = NaN;', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set value to null and max to 0");
p.value = null;

Powered by Google App Engine
This is Rietveld 408576698