Summary

Harness status: OK

Found 21 tests

Details

ResultTest NameMessage
PassFinishing an animation with a zero playback rate throws
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.finish();   }")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:20:3)
PassFinishing an infinite animation throws
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.finish();   }")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:31:3)
PassFinishing an animation seeks to the end time
Asserts run
Pass
assert_approx_equals(100000, 100000, 0.0005, "After finishing, the currentTime should be set to the end of the active duration")
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
PassFinishing an animation with a current time past the effect end jumps back to the end
Asserts run
Pass
assert_approx_equals(100000, 100000, 0.0005, "After finishing, the currentTime should be set back to the end of the active duration")
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
PassFinishing a reversed animation jumps to zero time
Asserts run
Pass
assert_equals(0, 0, "After finishing a reversed animation the currentTime should be set to zero")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:69:3)
PassFinishing a reversed animation with a current time less than zero makes it jump back to zero
Asserts run
Pass
assert_equals(0, 0, "After finishing a reversed animation the currentTime should be set back to zero")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:84:3)
PassFinishing a paused animation resolves the start time
Asserts run
Pass
assert_equals("finished", "finished", "The play state of a paused animation should become \"finished\"")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:98:3)
Pass
assert_approx_equals(-99561.43400000001, -99561.434, 0.001, "The start time of a paused animation should be set")
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
PassFinishing a pause-pending animation resolves the pending task immediately and update the start time
Asserts run
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:116:3)
Pass
assert_equals("finished", "finished", "The play state of a pause-pending animation should become \"finished\"")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:117:3)
Pass
assert_approx_equals(-50000, -50000, 0.001, "The start time of a pause-pending animation should be set")
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
PassFinishing a pause-pending animation with negative playback rate resolves the pending task immediately
Asserts run
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:134:3)
Pass
assert_equals("finished", "finished", "The play state of a pause-pending animation should become \"finished\"")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:135:3)
Pass
assert_approx_equals(0, 0, 0.001, "The start time of a pause-pending animation should be set")
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
PassFinishing an animation while play-pending resolves the pending task immediately
Asserts run
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:150:3)
Pass
assert_equals("finished", "finished", "The play state of a play-pending animation should become \"finished\"")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:151:3)
Pass
assert_approx_equals(-200000, -200000, 0.001, "The start time of a play-pending animation should be set")
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
PassFinishing an animation during an aborted pause makes it finished immediately
Asserts run
Pass
assert_equals("finished", "finished", "After aborting a pause then finishing an animation its play state should become \"finished\" immediately")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:177:3)
PassFinishing an animation resolves the finished promise synchronously
Asserts run
Pass
assert_true(true, "finished promise should be resolved")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:196:3)
PassFinishing an animation without a target resolves the finished promise synchronously
Asserts run
Pass
assert_true(true, "finished promise should be resolved")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:212:3)
PassA pending ready promise is resolved and not replaced when the animation is finished
Asserts run
Pass
assert_equals(object "[object Animation]", object "[object Animation]")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:226:3)
Pass
assert_equals(object "[object Promise]", object "[object Promise]")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:227:3)
Pass
assert_true(true)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:228:3)
PassA pending playback rate should be applied immediately when an animation is finished
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:237:3)
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:240:3)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:241:3)
Pass
assert_approx_equals(100000, 100000, 0.0005, undefined)
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
PassAn exception should be thrown if the effective playback rate is zero
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.finish();   }")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:252:3)
PassAn exception should be thrown when finishing if the effective playback rate is positive and the target effect end is infinity
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "() => {     animation.finish();   }")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:268:3)
PassAn exception is NOT thrown when finishing if the effective playback rate is negative and the target effect end is infinity
Asserts runNo asserts ran
PassFinishing an animation fires finish event on orphaned element
Asserts run
Pass
assert_equals(null, null, "finish event should be fired for the animation on an orphaned element")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:299:3)
PassFinishing a canceled animation sets the current and start times
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:310:3)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:311:3)
Pass
assert_not_equals(object "[object Promise]", object "[object Promise]", "Canceling an animation should create a new finished promise")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:314:3)
Pass
assert_equals("finished", "finished", "The play state of a canceled animation should become \"finished\"")
    at Test.<anonymous> ( /web-animations/timing-model/animations/finishing-an-animation.html:318:3)
Pass
assert_approx_equals(-99444.8, -99444.8, 0.001, "The start time of a finished animation should be set")
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
Pass
assert_approx_equals(100000, 100000, 0.001, "Hold time should be set to end boundary of the animation")
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
FailFinishing an animation fires finish event when a finish event listener is added as the finished promise resolvesassert_true: Timed out waiting for finish expected true got false
Error
    at get_stack (https://wpt.live/resources/testharness.js:4571:21)
    at new AssertionError (https://wpt.live/resources/testharness.js:4564:22)
    at assert (https://wpt.live/resources/testharness.js:4548:19)
    at assert_true (https://wpt.live/resources/testharness.js:1494:9)
    at Test.<anonymous> (https://wpt.live/resources/testharness.js:990:21)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at https://wpt.live/resources/testharness.js:2689:35
Asserts runNo asserts ran