| Index: LayoutTests/svg/custom/script-tests/selectSubString.js
|
| diff --git a/LayoutTests/svg/custom/script-tests/selectSubString.js b/LayoutTests/svg/custom/script-tests/selectSubString.js
|
| index 3a53992ef008d6cab39ba67c3b173d1c4eb3f258..e069d68948c8a813de51a51de80af2f8347cace8 100644
|
| --- a/LayoutTests/svg/custom/script-tests/selectSubString.js
|
| +++ b/LayoutTests/svg/custom/script-tests/selectSubString.js
|
| @@ -9,9 +9,9 @@ svgText.style.fontSize = "20px";
|
| svgText.appendChild(document.createTextNode("abc"));
|
| svgRoot.appendChild(svgText);
|
|
|
| -shouldThrow("svgText.selectSubString(-1, 0)");
|
| -shouldThrow("svgText.getSubStringLength(0, -1)");
|
| -shouldThrow("svgText.getSubStringLength(3, 0)");
|
| +shouldThrow("svgText.selectSubString(-1, 0)", "'IndexSizeError: Index or size was negative, or greater than the allowed value.'");
|
| +shouldNotThrow("svgText.getSubStringLength(0, -1)");
|
| +shouldThrow("svgText.getSubStringLength(3, 0)", "'IndexSizeError: Index or size was negative, or greater than the allowed value.'");
|
|
|
| // cleanup
|
| document.documentElement.removeChild(svgRoot);
|
|
|