OLD | NEW |
| (Empty) |
1 Acid3 test 77, checking text metric functionality | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS text.getNumberOfChars() is 3 | |
7 FAIL text.getComputedTextLength() should be 4776. Was 5550. | |
8 FAIL text.getSubStringLength(0,1) should be 42. Was 1775. | |
9 FAIL text.getSubStringLength(0,2) should be 65. Was 3775. | |
10 FAIL text.getSubStringLength(1,1) should be 23. Was 2000. | |
11 PASS text.getSubStringLength(1,0) is 0 | |
12 FAIL text.getSubStringLength(1, 3) should be 4734. Was 3775. | |
13 FAIL text.getSubStringLength(0, 4) should be 4776. Was 5550. | |
14 PASS text.getSubStringLength(3, 0) threw exception IndexSizeError: Failed to exe
cute 'getSubStringLength' on 'SVGTextContentElement': The charnum provided (3) i
s greater than or equal to the maximum bound (3).. | |
15 PASS text.getSubStringLength(-17, 20) threw exception IndexSizeError: Failed to
execute 'getSubStringLength' on 'SVGTextContentElement': The charnum provided (4
294967279) is greater than the maximum bound (3).. | |
16 PASS text.getStartPositionOfChar(0).x is 0 | |
17 FAIL text.getStartPositionOfChar(1).x should be 42. Was 1775. | |
18 FAIL text.getStartPositionOfChar(2).x should be 65. Was 3775. | |
19 PASS text.getStartPositionOfChar(0).y is 4000 | |
20 PASS text.getEndPositionOfChar(-1) threw exception IndexSizeError: Failed to exe
cute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (42
94967295) is greater than the maximum bound (3).. | |
21 PASS text.getEndPositionOfChar(4) threw exception IndexSizeError: Failed to exec
ute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (4)
is greater than the maximum bound (3).. | |
22 FAIL text.getEndPositionOfChar(0).x should be 42. Was 1775. | |
23 FAIL text.getEndPositionOfChar(1).x should be 65. Was 3775. | |
24 FAIL text.getEndPositionOfChar(2).x should be 4776. Was 5550. | |
25 PASS text.getEndPositionOfChar(-17) threw exception IndexSizeError: Failed to ex
ecute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (4
294967279) is greater than the maximum bound (3).. | |
26 PASS text.getEndPositionOfChar(4) threw exception IndexSizeError: Failed to exec
ute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (4)
is greater than the maximum bound (3).. | |
27 PASS successfullyParsed is true | |
28 | |
29 TEST COMPLETE | |
30 | |
OLD | NEW |