mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision b'56123c260eff2131bc355b66530d6f0b18b20b2c'
This commit is contained in:
parent
ba48966934
commit
82db1c49ad
136 changed files with 1358 additions and 1444 deletions
|
@ -271,8 +271,9 @@ test(t => {
|
|||
const div = addDiv(t, { style: 'animation: moveAnimation 100s' });
|
||||
const anim = div.getAnimations()[0];
|
||||
anim.currentTime = 5 * MS_PER_SEC;
|
||||
assert_equals(anim.effect.getComputedTiming().localTime, anim.currentTime,
|
||||
'current localTime after setting currentTime');
|
||||
assert_times_equal(anim.effect.getComputedTiming().localTime,
|
||||
anim.currentTime,
|
||||
'current localTime after setting currentTime');
|
||||
}, 'localTime of an animation is always equal to currentTime');
|
||||
|
||||
promise_test(async t => {
|
||||
|
@ -283,13 +284,15 @@ promise_test(async t => {
|
|||
|
||||
await anim.ready;
|
||||
|
||||
assert_equals(anim.effect.getComputedTiming().localTime, anim.currentTime,
|
||||
'localTime is equal to currentTime');
|
||||
assert_times_equal(anim.effect.getComputedTiming().localTime,
|
||||
anim.currentTime,
|
||||
'localTime is equal to currentTime');
|
||||
|
||||
await waitForFrame();
|
||||
|
||||
assert_equals(anim.effect.getComputedTiming().localTime, anim.currentTime,
|
||||
'localTime is equal to currentTime');
|
||||
assert_times_equal(anim.effect.getComputedTiming().localTime,
|
||||
anim.currentTime,
|
||||
'localTime is equal to currentTime');
|
||||
}, 'localTime reflects playbackRate immediately');
|
||||
|
||||
test(t => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue