OLD | NEW |
| (Empty) |
1 Check that SVGTextContentElement methods' parameters are correctly validated | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS svgText.getSubStringLength() threw exception TypeError: Failed to execute '
getSubStringLength' on 'SVGTextContentElement': 2 arguments required, but only 0
present.. | |
7 PASS svgText.getSubStringLength(2) threw exception TypeError: Failed to execute
'getSubStringLength' on 'SVGTextContentElement': 2 arguments required, but only
1 present.. | |
8 PASS svgText.getStartPositionOfChar() threw exception TypeError: Failed to execu
te 'getStartPositionOfChar' on 'SVGTextContentElement': 1 argument required, but
only 0 present.. | |
9 PASS svgText.getEndPositionOfChar() threw exception TypeError: Failed to execute
'getEndPositionOfChar' on 'SVGTextContentElement': 1 argument required, but onl
y 0 present.. | |
10 PASS svgText.getExtentOfChar() threw exception TypeError: Failed to execute 'get
ExtentOfChar' on 'SVGTextContentElement': 1 argument required, but only 0 presen
t.. | |
11 PASS svgText.getRotationOfChar() threw exception TypeError: Failed to execute 'g
etRotationOfChar' on 'SVGTextContentElement': 1 argument required, but only 0 pr
esent.. | |
12 PASS svgText.getCharNumAtPosition() threw exception TypeError: Failed to execute
'getCharNumAtPosition' on 'SVGTextContentElement': 1 argument required, but onl
y 0 present.. | |
13 PASS svgText.getCharNumAtPosition('aString') threw exception TypeError: Failed t
o execute 'getCharNumAtPosition' on 'SVGTextContentElement': parameter 1 is not
of type 'SVGPoint'.. | |
14 PASS svgText.getCharNumAtPosition(svgText) threw exception TypeError: Failed to
execute 'getCharNumAtPosition' on 'SVGTextContentElement': parameter 1 is not of
type 'SVGPoint'.. | |
15 PASS svgText.selectSubString() threw exception TypeError: Failed to execute 'sel
ectSubString' on 'SVGTextContentElement': 2 arguments required, but only 0 prese
nt.. | |
16 PASS svgText.selectSubString(2) threw exception TypeError: Failed to execute 'se
lectSubString' on 'SVGTextContentElement': 2 arguments required, but only 1 pres
ent.. | |
17 PASS svgText.getSubStringLength(999, 2) threw exception IndexSizeError: Failed t
o execute 'getSubStringLength' on 'SVGTextContentElement': The charnum provided
(999) is greater than the maximum bound (7).. | |
18 PASS svgText.getStartPositionOfChar(999) threw exception IndexSizeError: Failed
to execute 'getStartPositionOfChar' on 'SVGTextContentElement': The charnum prov
ided (999) is greater than the maximum bound (7).. | |
19 PASS svgText.getEndPositionOfChar(999) threw exception IndexSizeError: Failed to
execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided
(999) is greater than the maximum bound (7).. | |
20 PASS svgText.getExtentOfChar(999) threw exception IndexSizeError: Failed to exec
ute 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (999) is
greater than the maximum bound (7).. | |
21 PASS svgText.getRotationOfChar(999) threw exception IndexSizeError: Failed to ex
ecute 'getRotationOfChar' on 'SVGTextContentElement': The charnum provided (999)
is greater than the maximum bound (7).. | |
22 PASS svgText.selectSubString(999, 2) threw exception IndexSizeError: Failed to e
xecute 'selectSubString' on 'SVGTextContentElement': The charnum provided (999)
is greater than the maximum bound (7).. | |
23 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).. | |
24 PASS svgText.getStartPositionOfChar(7) threw exception IndexSizeError: Failed to
execute 'getStartPositionOfChar' on 'SVGTextContentElement': The charnum provid
ed (7) is greater than or equal to the maximum bound (7).. | |
25 PASS svgText.getEndPositionOfChar(7) threw exception IndexSizeError: Failed to e
xecute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (
7) is greater than or equal to the maximum bound (7).. | |
26 PASS svgText.getExtentOfChar(7) threw exception IndexSizeError: Failed to execut
e 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (7) is grea
ter than or equal to the maximum bound (7).. | |
27 PASS svgText.getRotationOfChar(7) threw exception IndexSizeError: Failed to exec
ute 'getRotationOfChar' on 'SVGTextContentElement': The charnum provided (7) is
greater than or equal to the maximum bound (7).. | |
28 PASS svgText.selectSubString(7, 2) threw exception IndexSizeError: Failed to exe
cute 'selectSubString' on 'SVGTextContentElement': The charnum provided (7) is g
reater than or equal to the maximum bound (7).. | |
29 PASS emptySvgText.getSubStringLength(0, 2) threw exception IndexSizeError: Faile
d to execute 'getSubStringLength' on 'SVGTextContentElement': The charnum provid
ed (0) is greater than or equal to the maximum bound (0).. | |
30 PASS emptySvgText.getStartPositionOfChar(0) threw exception IndexSizeError: Fail
ed to execute 'getStartPositionOfChar' on 'SVGTextContentElement': The charnum p
rovided (0) is greater than or equal to the maximum bound (0).. | |
31 PASS emptySvgText.getEndPositionOfChar(0) threw exception IndexSizeError: Failed
to execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provi
ded (0) is greater than or equal to the maximum bound (0).. | |
32 PASS emptySvgText.getExtentOfChar(0) threw exception IndexSizeError: Failed to e
xecute 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (0) is
greater than or equal to the maximum bound (0).. | |
33 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).. | |
34 PASS emptySvgText.selectSubString(0, 2) threw exception IndexSizeError: Failed t
o execute 'selectSubString' on 'SVGTextContentElement': The charnum provided (0)
is greater than or equal to the maximum bound (0).. | |
35 PASS svgText.getSubStringLength(-4294967294, 2) is svgText.getSubStringLength(2,
2) | |
36 PASS actualTestPoint.x is expectedTestPoint.x | |
37 PASS actualTestPoint.y is expectedTestPoint.y | |
38 PASS actualTestPoint.x is expectedTestPoint.x | |
39 PASS actualTestPoint.y is expectedTestPoint.y | |
40 PASS actualTestRect.x is expectedTestRect.x | |
41 PASS actualTestRect.y is expectedTestRect.y | |
42 PASS actualTestRect.width is expectedTestRect.width | |
43 PASS actualTestRect.height is expectedTestRect.height | |
44 PASS svgText.getRotationOfChar(-4294967294) is svgText.getRotationOfChar(2) | |
45 PASS svgText.selectSubString(-4294967294, 2) did not throw exception. | |
46 PASS svgText.getSubStringLength(-1, 2) threw exception IndexSizeError: Failed to
execute 'getSubStringLength' on 'SVGTextContentElement': The charnum provided (
4294967295) is greater than the maximum bound (7).. | |
47 PASS svgText.getStartPositionOfChar(-1) threw exception IndexSizeError: Failed t
o execute 'getStartPositionOfChar' on 'SVGTextContentElement': The charnum provi
ded (4294967295) is greater than the maximum bound (7).. | |
48 PASS svgText.getEndPositionOfChar(-1) threw exception IndexSizeError: Failed to
execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided
(4294967295) is greater than the maximum bound (7).. | |
49 PASS svgText.getExtentOfChar(-1) threw exception IndexSizeError: Failed to execu
te 'getExtentOfChar' on 'SVGTextContentElement': The charnum provided (429496729
5) is greater than the maximum bound (7).. | |
50 PASS svgText.getRotationOfChar(-1) threw exception IndexSizeError: Failed to exe
cute 'getRotationOfChar' on 'SVGTextContentElement': The charnum provided (42949
67295) is greater than the maximum bound (7).. | |
51 PASS svgText.selectSubString(-1, 2) threw exception IndexSizeError: Failed to ex
ecute 'selectSubString' on 'SVGTextContentElement': The charnum provided (429496
7295) is greater than the maximum bound (7).. | |
52 PASS svgText.getSubStringLength(2, 999) is svgText.getSubStringLength(2, 5) | |
53 PASS svgText.getSubStringLength(2, -1) is svgText.getSubStringLength(2, 5) | |
54 PASS svgText.getSubStringLength(2, 2) is svgText.getSubStringLength(2, -42949672
94) | |
55 PASS svgText.selectSubString(2, 999) did not throw exception. | |
56 PASS svgText.selectSubString(2, -1) did not throw exception. | |
57 PASS svgText.selectSubString(2, -4294967294) did not throw exception. | |
58 PASS successfullyParsed is true | |
59 | |
60 TEST COMPLETE | |
61 abcdefg | |
62 | |
OLD | NEW |