OLD | NEW |
| (Empty) |
1 This test checks the SVGAnimatedPreserveAspectRatio API - utilizing the preserve
AspectRatio property of SVGSVGElement | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial preserveAspectRatio value | |
8 PASS svgElement.preserveAspectRatio.toString() is "[object SVGAnimatedPreserveAs
pectRatio]" | |
9 PASS svgElement.preserveAspectRatio.baseVal.toString() is "[object SVGPreserveAs
pectRatio]" | |
10 PASS svgElement.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG_
PRESERVEASPECTRATIO_XMIDYMID | |
11 PASS svgElement.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRati
o.SVG_MEETORSLICE_MEET | |
12 | |
13 Check that preserveAspectRatios are dynamic, caching value in a local variable a
nd modifying it, should take effect | |
14 PASS aspectRef.align is SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN | |
15 PASS aspectRef.meetOrSlice is SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE | |
16 PASS svgElement.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG_
PRESERVEASPECTRATIO_XMAXYMIN | |
17 PASS svgElement.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRati
o.SVG_MEETORSLICE_SLICE | |
18 | |
19 Check that assigning to baseVal has no effect, as no setter is defined | |
20 PASS svgElement.preserveAspectRatio.baseVal = -1 is -1 | |
21 PASS svgElement.preserveAspectRatio.baseVal = 'aString' is "aString" | |
22 PASS svgElement.preserveAspectRatio.baseVal = svgElement is svgElement | |
23 | |
24 Check that the preserveAspectRatio align/meetOrSlice remained xMaxYMin/slice, an
d the baseVal type has not been changed | |
25 PASS svgElement.preserveAspectRatio.baseVal.toString() is "[object SVGPreserveAs
pectRatio]" | |
26 PASS svgElement.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG_
PRESERVEASPECTRATIO_XMAXYMIN | |
27 PASS svgElement.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRati
o.SVG_MEETORSLICE_SLICE | |
28 PASS successfullyParsed is true | |
29 | |
30 TEST COMPLETE | |
31 | |
OLD | NEW |