Index: LayoutTests/svg/custom/script-tests/getSubStringLength.js |
diff --git a/LayoutTests/svg/custom/script-tests/getSubStringLength.js b/LayoutTests/svg/custom/script-tests/getSubStringLength.js |
index d0fbb57368d9d7ae164650208ce925b804784741..90580fdc553c036484f0fceacfbcfc65c399c7e0 100644 |
--- a/LayoutTests/svg/custom/script-tests/getSubStringLength.js |
+++ b/LayoutTests/svg/custom/script-tests/getSubStringLength.js |
@@ -23,10 +23,10 @@ shouldBe("svgText.getSubStringLength(1, 1)", "20"); |
shouldBe("svgText.getSubStringLength(2, 1)", "20"); |
shouldBe("svgText.getSubStringLength(0, 3)", "60"); |
-shouldThrow("svgText.getSubStringLength(1, -1)"); |
-shouldThrow("svgText.getSubStringLength(2, -1)"); |
-shouldThrow("svgText.getSubStringLength(3, -1)"); |
-shouldThrow("svgText.getSubStringLength(3, -3)"); |
+shouldNotThrow("svgText.getSubStringLength(1, -1)"); |
+shouldNotThrow("svgText.getSubStringLength(2, -1)"); |
+shouldThrow("svgText.getSubStringLength(3, -1)", "'IndexSizeError: Index or size was negative, or greater than the allowed value.'"); |
+shouldThrow("svgText.getSubStringLength(3, -3)", "'IndexSizeError: Index or size was negative, or greater than the allowed value.'"); |
// cleanup |
document.documentElement.removeChild(svgRoot); |