OLD | NEW |
1 Complete test of the SVGTextContentElement API | 1 Complete test of the SVGTextContentElement API |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Test SVGTextContentElement SVG DOM properties | 6 Test SVGTextContentElement SVG DOM properties |
7 PASS svgText.textLength.baseVal.value.toFixed(1) is "200.0" | 7 PASS svgText.textLength.baseVal.value.toFixed(1) is "200.0" |
8 PASS svgText.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJUST_SPACINGA
NDGLYPHS | 8 PASS svgText.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJUST_SPACINGA
NDGLYPHS |
9 | 9 |
10 Test getNumberOfChars() API | 10 Test getNumberOfChars() API |
11 PASS svgText.getNumberOfChars() is 4 | 11 PASS svgText.getNumberOfChars() is 4 |
12 | 12 |
13 Test getComputedTextLength() API | 13 Test getComputedTextLength() API |
14 PASS lengthToString(svgText.getComputedTextLength()) is "200.0" | 14 PASS lengthToString(svgText.getComputedTextLength()) is "200.0" |
15 | 15 |
16 Test getSubStringLength() API | 16 Test getSubStringLength() API |
17 FAIL lengthToString(svgText.getSubStringLength(0, 1)) should be 61.5. Was 66.6. | 17 FAIL lengthToString(svgText.getSubStringLength(0, 1)) should be 61.5. Was 66.6. |
18 FAIL lengthToString(svgText.getSubStringLength(0, 2)) should be 117.9. Was 115.2
. | 18 FAIL lengthToString(svgText.getSubStringLength(0, 2)) should be 117.9. Was 115.2
. |
19 FAIL lengthToString(svgText.getSubStringLength(0, 3)) should be 169.2. Was 169.7
. | 19 FAIL lengthToString(svgText.getSubStringLength(0, 3)) should be 169.2. Was 169.7
. |
20 PASS lengthToString(svgText.getSubStringLength(0, 4)) is "200.0" | 20 PASS lengthToString(svgText.getSubStringLength(0, 4)) is "200.0" |
21 FAIL lengthToString(svgText.getSubStringLength(1, 1)) should be 56.4. Was 60.6. | 21 FAIL lengthToString(svgText.getSubStringLength(1, 1)) should be 56.4. Was 48.6. |
22 FAIL lengthToString(svgText.getSubStringLength(1, 2)) should be 107.7. Was 115.2
. | 22 FAIL lengthToString(svgText.getSubStringLength(1, 2)) should be 107.7. Was 103.1
. |
23 FAIL lengthToString(svgText.getSubStringLength(1, 3)) should be 138.5. Was 145.5
. | 23 FAIL lengthToString(svgText.getSubStringLength(1, 3)) should be 138.5. Was 133.4
. |
24 FAIL lengthToString(svgText.getSubStringLength(2, 1)) should be 51.3. Was 54.5. | 24 FAIL lengthToString(svgText.getSubStringLength(2, 1)) should be 51.3. Was 54.5. |
25 FAIL lengthToString(svgText.getSubStringLength(2, 2)) should be 82.1. Was 84.8. | 25 FAIL lengthToString(svgText.getSubStringLength(2, 2)) should be 82.1. Was 84.8. |
26 FAIL lengthToString(svgText.getSubStringLength(3, 1)) should be 30.8. Was 30.3. | 26 FAIL lengthToString(svgText.getSubStringLength(3, 1)) should be 30.8. Was 30.3. |
27 | 27 |
28 Test getStartPositionOfChar() API | 28 Test getStartPositionOfChar() API |
29 PASS pointToString(svgText.getStartPositionOfChar(0)) is "(10.0,20.0)" | 29 PASS pointToString(svgText.getStartPositionOfChar(0)) is "(10.0,20.0)" |
30 FAIL pointToString(svgText.getStartPositionOfChar(1)) should be (71.5,20.0). Was
(76.6,20.0). | 30 FAIL pointToString(svgText.getStartPositionOfChar(1)) should be (71.5,20.0). Was
(76.6,20.0). |
31 FAIL pointToString(svgText.getStartPositionOfChar(2)) should be (127.9,20.0). Wa
s (125.2,20.0). | 31 FAIL pointToString(svgText.getStartPositionOfChar(2)) should be (127.9,20.0). Wa
s (125.2,20.0). |
32 FAIL pointToString(svgText.getStartPositionOfChar(3)) should be (179.2,20.0). Wa
s (179.7,20.0). | 32 FAIL pointToString(svgText.getStartPositionOfChar(3)) should be (179.2,20.0). Wa
s (179.7,20.0). |
33 | 33 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 > Testing point=(209.9,10.0) | 71 > Testing point=(209.9,10.0) |
72 PASS svgText.getCharNumAtPosition(point) is 3 | 72 PASS svgText.getCharNumAtPosition(point) is 3 |
73 > Testing point=(210.1,10.0) | 73 > Testing point=(210.1,10.0) |
74 PASS svgText.getCharNumAtPosition(point) is -1 | 74 PASS svgText.getCharNumAtPosition(point) is -1 |
75 > Testing point=(250.0,10.0) | 75 > Testing point=(250.0,10.0) |
76 PASS svgText.getCharNumAtPosition(point) is -1 | 76 PASS svgText.getCharNumAtPosition(point) is -1 |
77 PASS successfullyParsed is true | 77 PASS successfullyParsed is true |
78 | 78 |
79 TEST COMPLETE | 79 TEST COMPLETE |
80 | 80 |
OLD | NEW |