mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -148,6 +148,25 @@ test(function(t) {
|
|||
});
|
||||
}, 'set duration string 100');
|
||||
|
||||
promise_test(function(t) {
|
||||
var anim = createDiv(t).animate(null, 100 * MS_PER_SEC);
|
||||
return anim.ready.then(function() {
|
||||
var originalStartTime = anim.startTime;
|
||||
var originalCurrentTime = anim.currentTime;
|
||||
assert_equals(anim.effect.getComputedTiming().duration, 100 * MS_PER_SEC,
|
||||
'Initial duration should be as set on KeyframeEffect');
|
||||
|
||||
anim.effect.timing.duration = 200 * MS_PER_SEC;
|
||||
assert_equals(anim.effect.getComputedTiming().duration, 200 * MS_PER_SEC,
|
||||
'Effect duration should have been updated');
|
||||
assert_times_equal(anim.startTime, originalStartTime,
|
||||
'startTime should be unaffected by changing effect ' +
|
||||
'duration');
|
||||
assert_times_equal(anim.currentTime, originalCurrentTime,
|
||||
'currentTime should be unaffected by changing effect ' +
|
||||
'duration');
|
||||
});
|
||||
}, 'Extending an effect\'s duration does not change the start or current time');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -56,6 +56,14 @@ gInvalidEasings.forEach(function(invalidEasing) {
|
|||
}, 'Invalid effect easing value test: \'' + invalidEasing + '\'');
|
||||
});
|
||||
|
||||
gRoundtripEasings.forEach(easing => {
|
||||
test(function(t) {
|
||||
const anim = createDiv(t).animate(null);
|
||||
anim.effect.timing.easing = easing;
|
||||
assert_equals(anim.effect.timing.easing, easing);
|
||||
}, `Canonical easing '${easing}' is returned as set`);
|
||||
});
|
||||
|
||||
test(function(t) {
|
||||
var delay = 1000 * MS_PER_SEC;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue