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

Unified Diff: LayoutTests/svg/dom/script-tests/SVGNumber.js

Issue 930053002: Apply TypeChecking=Unrestricted to SVG{Number,Length,Transform,Angle} (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | « LayoutTests/svg/dom/script-tests/SVGLength.js ('k') | LayoutTests/svg/dom/script-tests/SVGTransform.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dom/script-tests/SVGNumber.js
diff --git a/LayoutTests/svg/dom/script-tests/SVGNumber.js b/LayoutTests/svg/dom/script-tests/SVGNumber.js
index 246c837e9076a309c2340d0c7f3ba682f7937adf..d728676ccec5988540740ef69d1ea58b5e1a1700 100644
--- a/LayoutTests/svg/dom/script-tests/SVGNumber.js
+++ b/LayoutTests/svg/dom/script-tests/SVGNumber.js
@@ -23,10 +23,13 @@ shouldBe("num.value", "-12345678");
debug("");
debug("Check assigning invalid number, number should be 0 afterwards");
-shouldBe("num.value = num", "num");
-shouldBe("num.value = 'aString'", "'aString'");
-shouldBe("num.value = svgElement", "svgElement");
-shouldBe("num.value", "NaN");
+shouldBe("num.value = 0", "0");
+shouldThrow("num.value = num");
+shouldThrow("num.value = 'aString'");
+shouldThrow("num.value = svgElement");
+shouldThrow("num.value = NaN");
+shouldThrow("num.value = Infinity");
+shouldBe("num.value", "0");
shouldBeNull("num.value = null");
debug("");
« no previous file with comments | « LayoutTests/svg/dom/script-tests/SVGLength.js ('k') | LayoutTests/svg/dom/script-tests/SVGTransform.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698