40 lines
2.8 KiB
Plaintext
40 lines
2.8 KiB
Plaintext
This test checks the SVGPreserveAspectRatio API - utilizing the preserveAspectRatio property of SVGSVGElement
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
|
|
Check initial align/meetOrSlice values
|
|
PASS preserveAspectRatio.align is SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID
|
|
PASS preserveAspectRatio.meetOrSlice is SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET
|
|
|
|
Check assigning align/meetOrSlice values
|
|
PASS preserveAspectRatio.align = SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN is SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN
|
|
PASS preserveAspectRatio.meetOrSlice = SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE is SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE
|
|
|
|
Check assigning invalid align values
|
|
PASS preserveAspectRatio.align = preserveAspectRatio threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.align = null threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.align = 'aString' threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.align = svgElement threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.align = SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.align = -1 threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.align = 11 threw exception NotSupportedError: The operation is not supported..
|
|
|
|
Check assigning invalid meetOrSlice values
|
|
PASS preserveAspectRatio.meetOrSlice = preserveAspectRatio threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.meetOrSlice = null threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.meetOrSlice = 'aString' threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.meetOrSlice = svgElement threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.meetOrSlice = SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.meetOrSlice = -1 threw exception NotSupportedError: The operation is not supported..
|
|
PASS preserveAspectRatio.meetOrSlice = 3 threw exception NotSupportedError: The operation is not supported..
|
|
|
|
Check that the preserveAspectRatio remained correct
|
|
PASS preserveAspectRatio.align = SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN is SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN
|
|
PASS preserveAspectRatio.meetOrSlice = SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE is SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|