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.

Run the test. No interaction required.

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.

$RCSfile: types-dom-05-b.svg,v $ Test side effects of assigning to valueAsString Valid string on SVGLength Invalid string on SVGLength Valid string on SVGAngle Invalid string on SVGAngle $Revision: 1.6 $