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

Unified Diff: LayoutTests/svg/custom/script-tests/selectSubString.js

Issue 22798002: Make SVGTextContentElement methods behave consistently with Firefox and IE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 7 years, 4 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/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);
« no previous file with comments | « LayoutTests/svg/custom/script-tests/getSubStringLength.js ('k') | LayoutTests/svg/custom/selectSubString-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698