udom-svg-213-t

raster image of udom-svg-213-t

This tests that the getCurrentTime method of the SVGSVGElement interface returns sensible values.

The test shows three rectangles. The test is passed if the first rectangle is blue, and after clicking the second rectangle it turns blue, and after clicking the third rectangle it also turns blue.

The first one represents whether calling getCurrentTime before the load event is dispatched returns 0. Clicking the second rectangle (which is red to begin with) then tests that the current time is greater than 0. Finally, clicking the third rectangle (which also is red to begin with) tests that the current time is greater than the time at which the second rectangle was clicked.