OLD | NEW |
| (Empty) |
1 This test checks the SVGPoint API | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial point values | |
8 PASS point.x is 0 | |
9 PASS point.y is 0 | |
10 | |
11 Check assigning points | |
12 PASS point.x = 100 is 100 | |
13 PASS point.y = 200 is 200 | |
14 | |
15 Check assigning invalid points | |
16 PASS point.x = point is point | |
17 PASS point.y = null is null | |
18 | |
19 Check that the point contains the correct values | |
20 PASS point.x is NaN | |
21 PASS point.y is 0 | |
22 | |
23 Reset to -50, 100 | |
24 | |
25 Check 'matrixTransform' method - multiply with -1,0,0,2,10,10 matrix, should fli
p x coordinate, multiply y by two and translate each coordinate by 10 | |
26 PASS (newPoint = point.matrixTransform(ctm)).toString() is "[object SVGPoint]" | |
27 PASS newPoint.x is 60 | |
28 PASS newPoint.y is 210 | |
29 | |
30 Check invalid arguments for 'matrixTransform' | |
31 PASS point.matrixTransform() threw exception TypeError: Failed to execute 'matri
xTransform' on 'SVGPoint': 1 argument required, but only 0 present.. | |
32 PASS point.matrixTransform(-1) threw exception TypeError: Failed to execute 'mat
rixTransform' on 'SVGPoint': parameter 1 is not of type 'SVGMatrix'.. | |
33 PASS point.matrixTransform(5) threw exception TypeError: Failed to execute 'matr
ixTransform' on 'SVGPoint': parameter 1 is not of type 'SVGMatrix'.. | |
34 PASS point.matrixTransform('aString') threw exception TypeError: Failed to execu
te 'matrixTransform' on 'SVGPoint': parameter 1 is not of type 'SVGMatrix'.. | |
35 PASS point.matrixTransform(point) threw exception TypeError: Failed to execute '
matrixTransform' on 'SVGPoint': parameter 1 is not of type 'SVGMatrix'.. | |
36 PASS point.matrixTransform(svgElement) threw exception TypeError: Failed to exec
ute 'matrixTransform' on 'SVGPoint': parameter 1 is not of type 'SVGMatrix'.. | |
37 PASS successfullyParsed is true | |
38 | |
39 TEST COMPLETE | |
40 | |
OLD | NEW |