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

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

Issue 262753004: Replace all remaining IDL finitude type checks with [TypeChecking=Unrestricted] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 8 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 f8aa4355531f95f6ac32f9e35c5c85b4fd42b2a9..33e6ef23d2c937613e58415538dbca39e70f033e 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";', '"TypeError: Failed to set the \'value\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.value = "value";');
debug("Set min to NaN");
-shouldThrow('m.min = NaN;', '"TypeError: Failed to set the \'min\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.min = NaN;');
debug("Set max to Infinity");
-shouldThrow('m.max = Infinity;', '"TypeError: Failed to set the \'max\' property on \'HTMLMeterElement\': The value provided is infinite."');
+shouldThrow('m.max = Infinity;');
debug("Set low to invalid value");
-shouldThrow('m.low = "low";', '"TypeError: Failed to set the \'low\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.low = "low";');
debug("Set high to NaN");
-shouldThrow('m.high = NaN;', '"TypeError: Failed to set the \'high\' property on \'HTMLMeterElement\': The value provided is not a number."');
+shouldThrow('m.high = NaN;');
debug("Set optimum to Infinity");
-shouldThrow('m.optimum = Infinity;', '"TypeError: Failed to set the \'optimum\' property on \'HTMLMeterElement\': The value provided is infinite."');
+shouldThrow('m.optimum = Infinity;');
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