udom-svg-227-t

raster image of udom-svg-227-t

Tests setCurrentTime. The test is passed if the the moving bar skips from 2 to 4 , and from 5 to 8; and after the animation completes, the text "passed" appears at the bottom right.

Four animations begin at time 0 and end at times 1, 2, 5 and 9 seconds. Event listeners are registered for the "endEvent" event. As each animation ends, getCurrentTime() is called to verify the expected current time, which is them followed by a call to setCurrentTime. If all times have the expected values, the text changes from 'testing' to 'passed' The expected time is compared with the minimum time to take into account implementation-specific document time resolution.