OLD | NEW |
(Empty) | |
| 1 This test checks the Viewport Units for SVGLength |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 |
| 7 Tests the vw unit |
| 8 PASS svgElement.width.baseVal.value is 10 * viewportWidthPercent() |
| 9 PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10 |
| 10 PASS svgElement.width.baseVal.valueAsString = '2vw' threw exception SyntaxError:
Failed to set the 'valueAsString' property on 'SVGLength': The value provided (
'2vw') is invalid.. |
| 11 PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exceptio
n. |
| 12 PASS svgElement.width.baseVal.value is 2 * viewportWidthPercent() |
| 13 PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN |
| 14 |
| 15 Tests the vh unit |
| 16 PASS svgElement.width.baseVal.value is 10 * viewportHeightPercent() |
| 17 PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10 |
| 18 PASS svgElement.width.baseVal.valueAsString = '2vh' threw exception SyntaxError:
Failed to set the 'valueAsString' property on 'SVGLength': The value provided (
'2vh') is invalid.. |
| 19 PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exceptio
n. |
| 20 PASS svgElement.width.baseVal.value is 2 * viewportHeightPercent() |
| 21 PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN |
| 22 |
| 23 Tests the vmin unit |
| 24 PASS svgElement.width.baseVal.value is 10 * viewportMinPercent() |
| 25 PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10 |
| 26 PASS svgElement.width.baseVal.valueAsString = '2vmin' threw exception SyntaxErro
r: Failed to set the 'valueAsString' property on 'SVGLength': The value provided
('2vmin') is invalid.. |
| 27 PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exceptio
n. |
| 28 PASS svgElement.width.baseVal.value is 2 * viewportMinPercent() |
| 29 PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN |
| 30 |
| 31 Tests the vmax unit |
| 32 PASS svgElement.width.baseVal.value is 10 * viewportMaxPercent() |
| 33 PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10 |
| 34 PASS svgElement.width.baseVal.valueAsString = '2vmax' threw exception SyntaxErro
r: Failed to set the 'valueAsString' property on 'SVGLength': The value provided
('2vmax') is invalid.. |
| 35 PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exceptio
n. |
| 36 PASS svgElement.width.baseVal.value is 2 * viewportMaxPercent() |
| 37 PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN |
| 38 PASS successfullyParsed is true |
| 39 |
| 40 TEST COMPLETE |
| 41 |
OLD | NEW |