OLD | NEW |
1 This test checks the SVGViewSpec API, operating on a parsed viewSpec | 1 This test checks the SVGViewSpec API, operating on a parsed viewSpec |
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 | 6 |
7 Loading external SVG resources/viewspec-target.svg | 7 Loading external SVG resources/viewspec-target.svg |
8 Passing SVGViewSpec: svgView(viewBox(0,0,100,50);preserveAspectRatio(xMinYMid sl
ice);transform(translate(0 10) translate(25 25) rotate(45) translate(-25 -25) sc
ale(0.7 0.7));viewTarget(blub);zoomAndPan(disable)) | 8 Passing SVGViewSpec: svgView(viewBox(0,0,100,50);preserveAspectRatio(xMinYMid sl
ice);transform(translate(0 10) translate(25 25) rotate(45) translate(-25 -25) sc
ale(0.7 0.7));viewTarget(blub);zoomAndPan(disable)) |
9 | 9 |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 PASS matrixToString(currentView.transform.getItem(3).matrix) is "[1.00 0.00 0.00
1.00 -25.00 -25.00]" | 25 PASS matrixToString(currentView.transform.getItem(3).matrix) is "[1.00 0.00 0.00
1.00 -25.00 -25.00]" |
26 PASS currentView.transform.getItem(4).type is SVGTransform.SVG_TRANSFORM_SCALE | 26 PASS currentView.transform.getItem(4).type is SVGTransform.SVG_TRANSFORM_SCALE |
27 PASS currentView.transform.getItem(4).angle is 0 | 27 PASS currentView.transform.getItem(4).angle is 0 |
28 PASS matrixToString(currentView.transform.getItem(4).matrix) is "[0.70 0.00 0.00
0.70 0.00 0.00]" | 28 PASS matrixToString(currentView.transform.getItem(4).matrix) is "[0.70 0.00 0.00
0.70 0.00 0.00]" |
29 | 29 |
30 Check viewTarget value | 30 Check viewTarget value |
31 PASS currentView.viewTargetString is "blub" | 31 PASS currentView.viewTargetString is "blub" |
32 PASS currentView.viewTarget is null | 32 PASS currentView.viewTarget is null |
33 | 33 |
34 Check zoomAndPan value | 34 Check zoomAndPan value |
35 PASS currentView.zoomAndPan is SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE | 35 PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_DISABLE |
36 | 36 |
37 Check viewBox value | 37 Check viewBox value |
38 PASS currentView.viewBox.baseVal.x is 0 | 38 PASS currentView.viewBox.baseVal.x is 0 |
39 PASS currentView.viewBox.baseVal.y is 0 | 39 PASS currentView.viewBox.baseVal.y is 0 |
40 PASS currentView.viewBox.baseVal.width is 100 | 40 PASS currentView.viewBox.baseVal.width is 100 |
41 PASS currentView.viewBox.baseVal.height is 50 | 41 PASS currentView.viewBox.baseVal.height is 50 |
42 PASS currentView.viewBoxString is "0 0 100 50" | 42 PASS currentView.viewBoxString is "0 0 100 50" |
43 | 43 |
44 Check preserveAspectRatio value | 44 Check preserveAspectRatio value |
45 PASS currentView.preserveAspectRatioString is "xMinYMid slice" | 45 PASS currentView.preserveAspectRatioString is "xMinYMid slice" |
46 PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG
_PRESERVEASPECTRATIO_XMINYMID | 46 PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG
_PRESERVEASPECTRATIO_XMINYMID |
47 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRat
io.SVG_MEETORSLICE_SLICE | 47 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRat
io.SVG_MEETORSLICE_SLICE |
48 PASS successfullyParsed is true | 48 PASS successfullyParsed is true |
49 | 49 |
50 TEST COMPLETE | 50 TEST COMPLETE |
51 | 51 |
OLD | NEW |