mirror of
https://github.com/servo/servo.git
synced 2025-09-01 02:28:21 +01:00
Update web-platform-tests to revision 4accec3d14ccdc7b170017c0df299b954019f06f
This commit is contained in:
parent
630cf2745b
commit
b30b1992ac
50 changed files with 1015 additions and 760 deletions
|
@ -130,21 +130,6 @@ function CreateKeyframeEffect(element) {
|
|||
assert_equals(workletAnimation.playState, 'idle');
|
||||
}, 'Creating animation with effects from different documents is allowed');
|
||||
|
||||
promise_test(async t => {
|
||||
await runInAnimationWorklet(document.getElementById('simple_animate').textContent);
|
||||
// TODO(crbug.com/781816): Allow KeyframeEffects with no target in AnimationWorklet.
|
||||
let effect = CreateKeyframeEffect(null);
|
||||
let effect2 = CreateKeyframeEffect(document.querySelector('#element'));
|
||||
|
||||
let constructorFunc = function() { new WorkletAnimation(
|
||||
'test-animator', [ effect, effect2 ]); };
|
||||
assert_throws('NotSupportedError', constructorFunc);
|
||||
|
||||
let constructorFunc2 = function() { new WorkletAnimation(
|
||||
'test-animator', [ effect2, effect ]); };
|
||||
assert_throws('NotSupportedError', constructorFunc2);
|
||||
}, 'If an effect has no target, object construction should fail');
|
||||
|
||||
promise_test(async t => {
|
||||
await runInAnimationWorklet(document.getElementById('simple_animate').textContent);
|
||||
let effect = CreateKeyframeEffect(document.querySelector('#element'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue