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

Unified Diff: LayoutTests/fast/dom/HTMLMeterElement/script-tests/set-meter-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/HTMLMeterElement/script-tests/set-meter-properties.js
diff --git a/LayoutTests/fast/dom/HTMLMeterElement/script-tests/set-meter-properties.js b/LayoutTests/fast/dom/HTMLMeterElement/script-tests/set-meter-properties.js
index dfaca69a776a7787f4604a27305f4b94d718ec54..f1d6c83bb2f5dee1dce74cf2cb77c78f855afb02 100644
--- a/LayoutTests/fast/dom/HTMLMeterElement/script-tests/set-meter-properties.js
+++ b/LayoutTests/fast/dom/HTMLMeterElement/script-tests/set-meter-properties.js
@@ -77,22 +77,22 @@ shouldBe("m.high", "200.0");
shouldBe("m.optimum", "12.5");
debug("Set value to invalid value");
-shouldThrow('m.value = "value";', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('m.value = "value";', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set min to NaN");
-shouldThrow('m.min = NaN;', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('m.min = NaN;', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set max to Infinity");
-shouldThrow('m.max = Infinity;', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('m.max = Infinity;', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set low to invalid value");
-shouldThrow('m.low = "low";', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('m.low = "low";', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set high to NaN");
-shouldThrow('m.high = NaN;', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('m.high = NaN;', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set optimum to Infinity");
-shouldThrow('m.optimum = Infinity;', '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow('m.optimum = Infinity;', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
debug("Set attributes to valid numbers");
m.setAttribute("min", 0);

Powered by Google App Engine
This is Rietveld 408576698