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

Unified Diff: LayoutTests/fast/dom/HTMLMeterElement/script-tests/set-meter-properties.js

Issue 131483008: Correctly report TypeError for HTML{Meter,Progress}Element setters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLMeterElement/set-meter-properties-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f2e70b1ae4fa13a3c8ca9197b7aa44e6dc93a93..f8aa4355531f95f6ac32f9e35c5c85b4fd42b2a9 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";', '"NotSupportedError: Failed to set the \'value\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.value = "value";', '"TypeError: Failed to set the \'value\' property on \'HTMLMeterElement\': The value provided is not a number."');
debug("Set min to NaN");
-shouldThrow('m.min = NaN;', '"NotSupportedError: Failed to set the \'min\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.min = NaN;', '"TypeError: Failed to set the \'min\' property on \'HTMLMeterElement\': The value provided is not a number."');
debug("Set max to Infinity");
-shouldThrow('m.max = Infinity;', '"NotSupportedError: Failed to set the \'max\' property on \'HTMLMeterElement\': The value provided is infinite."');
+shouldThrow('m.max = Infinity;', '"TypeError: Failed to set the \'max\' property on \'HTMLMeterElement\': The value provided is infinite."');
debug("Set low to invalid value");
-shouldThrow('m.low = "low";', '"NotSupportedError: Failed to set the \'low\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.low = "low";', '"TypeError: Failed to set the \'low\' property on \'HTMLMeterElement\': The value provided is not a number."');
debug("Set high to NaN");
-shouldThrow('m.high = NaN;', '"NotSupportedError: Failed to set the \'high\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.high = NaN;', '"TypeError: Failed to set the \'high\' property on \'HTMLMeterElement\': The value provided is not a number."');
debug("Set optimum to Infinity");
-shouldThrow('m.optimum = Infinity;', '"NotSupportedError: Failed to set the \'optimum\' property on \'HTMLMeterElement\': The value provided is infinite."');
+shouldThrow('m.optimum = Infinity;', '"TypeError: Failed to set the \'optimum\' property on \'HTMLMeterElement\': The value provided is infinite."');
debug("Set attributes to valid numbers");
m.setAttribute("min", 0);
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLMeterElement/set-meter-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698