Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

types-dom-05-b.svg

FAIL

raster image of types-dom-05-b.svg

Operator Script

Run the test. No interaction required.

Pass Criteria

Once the test is loaded, four rectangles are presented, indicating the result of passing a valid or invalid string to an SVGLength or SVGAngle object, as indicated. Each rectangle will be black if the sub-test did not run, red if it failed or green if it passed.

The test is passed if all four rectangles are green.

Test Description

This tests that assigning a valid length or angle string to valueAsString on an SVGLength or SVGAngle will affect that object's unitType, and that assigning an invalid string will throw a DOMException with code SYNTAX_ERR.