Summary

Harness status: OK

Found 13 tests

Details

ResultTest NameMessage
FailValidate different value types that can be used to set start timeassert_throws_js: function "() => { animation.startTime = CSSNumericValue.parse("30%"); }" threw object "NotSupportedError: Failed to set the 'startTime' property on 'Animation': Invalid startTime. CSSNumericValue must be either a number or a time value for time based animations." ("NotSupportedError") expected instance of function "function TypeError() { [native code] }" ("TypeError")
    at Test.<anonymous> (https://wpt.live/web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:19:3)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at https://wpt.live/resources/testharness.js:738:36
    at new Promise (<anonymous>)
Asserts run
Fail
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     animation.startTime = CSSNumericValue.parse("30%");   }")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:19:3)
PassSetting the start time of an animation without an active timeline
Asserts run
Pass
assert_equals(null, null, "Intial current time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:50:3)
Pass
assert_equals(null, null, "Intial start time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:51:3)
Pass
assert_equals(1000, 1000, "Setting the current time succeeds")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:54:3)
Pass
assert_equals(null, null, "Start time remains null after setting current time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:56:3)
Pass
assert_equals(1000, 1000, "Setting the start time succeeds")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:60:3)
Pass
assert_equals(null, null, "Setting the start time clears the current time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:62:3)
Pass
assert_equals(null, null, "Setting the start time to an unresolved time succeeds")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:66:3)
Pass
assert_equals(null, null, "The current time is unaffected")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:68:3)
PassSetting an unresolved start time an animation without an active timeline does not clear the current time
Asserts run
Pass
assert_equals(null, null, "Intial current time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:80:3)
Pass
assert_equals(null, null, "Intial start time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:81:3)
Pass
assert_equals(1000, 1000, "Setting the current time succeeds")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:84:3)
Pass
assert_equals(null, null, "Start time remains null after setting current time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:86:3)
Pass
assert_equals(null, null, "Start time remains unresolved")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:90:3)
Pass
assert_equals(1000, 1000, "Current time is unaffected")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:91:3)
PassSetting the start time clears the hold time
Asserts run
Pass
assert_equals(1000, 1000, "The current time is calculated from the hold time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:107:3)
Pass
assert_approx_equals(2000, 2000, 0.0005, "The current time is calculated from the start time, not the hold time")
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
Pass
assert_equals("running", "running", "Animation reports it is running after setting a resolved start time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:117:3)
PassSetting an unresolved start time sets the hold time
Asserts run
Pass
assert_equals("running", "running")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:130:3)
Pass
assert_approx_equals(1000, 1000, 0.0005, "Current time is resolved for a running animation")
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
Pass
assert_approx_equals(1000, 1000, 0.0005, "Hold time is set after start time is made unresolved")
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
Pass
assert_equals("paused", "paused", "Animation reports it is paused after setting an unresolved start time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:139:3)
PassSetting the start time resolves a pending ready promise
Asserts run
Pass
assert_true(true, "Animation is in play-pending state")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:156:3)
Pass
assert_false(false, "Ready promise callback is not called synchronously")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:162:3)
Pass
assert_true(true, "Ready promise callback called after setting startTime")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:168:3)
PassSetting the start time resolves a pending pause task
Asserts run
Pass
assert_true(true, "Animation is in pause-pending state")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:185:3)
Pass
assert_false(false, "Ready promise callback is not called synchronously")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:191:3)
Pass
assert_true(true, "Ready promise callback called after setting startTime")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:195:3)
PassSetting an unresolved start time on a play-pending animation makes it paused
Asserts run
Pass
assert_true(true, "Animation is pending")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:208:3)
Pass
assert_equals("running", "running", "Animation is play-pending")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:209:3)
Pass
assert_equals(null, null, "Start time is null")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:211:3)
Pass
assert_false(false, "Animation is no longer pending")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:216:3)
Pass
assert_equals("paused", "paused", "Animation is paused")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:217:3)
PassSetting the start time updates the finished state
Asserts run
Pass
assert_equals("finished", "finished", "Seeked to finished state using the startTime")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:229:3)
Pass
assert_greater_than(110000, 100000, "Setting the start time updated the finished state with the 'did seek' flag set to true")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:234:3)
Pass
assert_equals(110000, 110000, "Current time does not change after seeking past the effect end time by setting the current time")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:243:3)
PassSetting the start time of a play-pending animation applies a pending playback rate
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:252:3)
Pass
assert_equals("running", "running")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:253:3)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:257:3)
Pass
assert_true(true)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:258:3)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:262:3)
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:263:3)
Pass
assert_approx_equals(-24529.1, -24529.1, 0.001, undefined)
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
Pass
assert_approx_equals(50000, 50000, 0.0005, undefined)
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
PassSetting the start time of a playing animation applies a pending playback rate
Asserts run
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:277:3)
Pass
assert_equals("running", "running")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:278:3)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:282:3)
Pass
assert_true(true)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:283:3)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:287:3)
Pass
assert_false(false)
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:288:3)
Pass
assert_approx_equals(-24529.1, -24529.1, 0.001, undefined)
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
Pass
assert_approx_equals(50000, 50000, 0.0005, undefined)
    at window.assert_time_equals_literal ( /web-animations/testcommon.js:34:7)
PassSetting the start time on a running animation updates the play state
Asserts run
Pass
assert_equals("running", "running")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:300:3)
Pass
assert_equals("finished", "finished")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:305:3)
Pass
assert_approx_equals(200487.59999999998, 200487.6, 0.001, undefined)
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)
PassSetting the start time on a reverse running animation updates the play state
Asserts run
Pass
assert_equals("finished", "finished")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:318:3)
Pass
assert_equals("running", "running")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:320:3)
Pass
assert_equals("finished", "finished")
    at Test.<anonymous> ( /web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html:322:3)
Pass
assert_approx_equals(-200504.3, -200504.3, 0.001, undefined)
    at window.assert_times_equal ( /web-animations/testcommon.js:14:5)