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

Unified Diff: LayoutTests/fast/dom/HTMLProgressElement/script-tests/set-progress-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
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 f1a4275cea2de5a2ccc88940c0b218e4a5f22460..bd6d9af9b894e2d1c96f7b7ba5fc344bc6770ebb 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";', '"TypeError: Failed to set the \'value\' property on \'HTMLProgressElement\': The value provided is not a number."');
+shouldThrow('p.value = "200A";');
debug("Set invalid max, should throw");
-shouldThrow('p.max = "max";', '"TypeError: Failed to set the \'max\' property on \'HTMLProgressElement\': The value provided is not a number."');
+shouldThrow('p.max = "max";');
debug("Set max to Infinity, should throw");
-shouldThrow('p.max = Infinity;', '"TypeError: Failed to set the \'max\' property on \'HTMLProgressElement\': The value provided is infinite."');
+shouldThrow('p.max = Infinity;');
debug("Set value to NaN, should throw");
-shouldThrow('p.value = NaN;', '"TypeError: Failed to set the \'value\' property on \'HTMLProgressElement\': The value provided is not a number."');
+shouldThrow('p.value = NaN;');
debug("Set value to null and max to 0");
p.value = null;

Powered by Google App Engine
This is Rietveld 408576698