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(""); |