|
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 and verified with the expected time. The expected time is compared with the minimum time to take into account implementation-specific document time resolution. If all times have the expected values, the text changes from 'testing' to 'passed'