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

Unified Diff: LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt

Issue 1321783002: Throw exceptions for charnum == getNumberOfChars in get{...}OfChar APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/text/svgtextcontentelement-methods-parameters-expected.txt
diff --git a/LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt b/LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt
index 6a378986b2e2408ce01bebb8aad4344f74e8a2a4..300abe29dcfa105401695a292d6350c0a69b5dda 100644
--- a/LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt
+++ b/LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt
@@ -20,6 +20,18 @@ PASS svgText.getEndPositionOfChar(999) threw exception IndexSizeError: Failed to
PASS svgText.getExtentOfChar(999) threw exception IndexSizeError: Failed to execute 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (999) is greater than the maximum bound (7)..
PASS svgText.getRotationOfChar(999) threw exception IndexSizeError: Failed to execute 'getRotationOfChar' on 'SVGTextContentElement': The charnum provided (999) is greater than the maximum bound (7)..
PASS svgText.selectSubString(999, 2) threw exception IndexSizeError: Failed to execute 'selectSubString' on 'SVGTextContentElement': The charnum provided (999) is greater than the maximum bound (7)..
+PASS svgText.getSubStringLength(7, 2) threw exception IndexSizeError: Failed to execute 'getSubStringLength' on 'SVGTextContentElement': The charnum provided (7) is greater than or equal to the maximum bound (7)..
+PASS svgText.getStartPositionOfChar(7) threw exception IndexSizeError: Failed to execute 'getStartPositionOfChar' on 'SVGTextContentElement': The charnum provided (7) is greater than or equal to the maximum bound (7)..
+PASS svgText.getEndPositionOfChar(7) threw exception IndexSizeError: Failed to execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (7) is greater than or equal to the maximum bound (7)..
+PASS svgText.getExtentOfChar(7) threw exception IndexSizeError: Failed to execute 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (7) is greater than or equal to the maximum bound (7)..
+PASS svgText.getRotationOfChar(7) threw exception IndexSizeError: Failed to execute 'getRotationOfChar' on 'SVGTextContentElement': The charnum provided (7) is greater than or equal to the maximum bound (7)..
+PASS svgText.selectSubString(7, 2) threw exception IndexSizeError: Failed to execute 'selectSubString' on 'SVGTextContentElement': The charnum provided (7) is greater than or equal to the maximum bound (7)..
+PASS emptySvgText.getSubStringLength(0, 2) threw exception IndexSizeError: Failed to execute 'getSubStringLength' on 'SVGTextContentElement': The charnum provided (0) is greater than or equal to the maximum bound (0)..
+PASS emptySvgText.getStartPositionOfChar(0) threw exception IndexSizeError: Failed to execute 'getStartPositionOfChar' on 'SVGTextContentElement': The charnum provided (0) is greater than or equal to the maximum bound (0)..
+PASS emptySvgText.getEndPositionOfChar(0) threw exception IndexSizeError: Failed to execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (0) is greater than or equal to the maximum bound (0)..
+PASS emptySvgText.getExtentOfChar(0) threw exception IndexSizeError: Failed to execute 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (0) is greater than or equal to the maximum bound (0)..
+PASS emptySvgText.getRotationOfChar(0) threw exception IndexSizeError: Failed to execute 'getRotationOfChar' on 'SVGTextContentElement': The charnum provided (0) is greater than or equal to the maximum bound (0)..
+PASS emptySvgText.selectSubString(0, 2) threw exception IndexSizeError: Failed to execute 'selectSubString' on 'SVGTextContentElement': The charnum provided (0) is greater than or equal to the maximum bound (0)..
PASS svgText.getSubStringLength(-4294967294, 2) is svgText.getSubStringLength(2, 2)
PASS actualTestPoint.x is expectedTestPoint.x
PASS actualTestPoint.y is expectedTestPoint.y
@@ -47,3 +59,4 @@ PASS successfullyParsed is true
TEST COMPLETE
abcdefg
+
« no previous file with comments | « LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698