mirror of
https://github.com/servo/servo.git
synced 2025-07-05 22:43:40 +01:00
26 lines
701 B
JavaScript
26 lines
701 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://w3c.github.io/web-animations/#animationplaybackevent
|
|
|
|
'use strict';
|
|
|
|
promise_test(async () => {
|
|
const srcs = ['web-animations', 'dom'];
|
|
const [idl, dom] = await Promise.all(
|
|
srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
|
|
|
|
const idlArray = new IdlArray();
|
|
idlArray.add_idls(idl, {
|
|
only: [
|
|
'AnimationPlaybackEventInit',
|
|
'AnimationPlaybackEvent',
|
|
]
|
|
});
|
|
idlArray.add_dependency_idls(dom);
|
|
idlArray.add_objects({
|
|
AnimationPlaybackEvent: ['new AnimationPlaybackEvent("cancel")'],
|
|
});
|
|
|
|
idlArray.test();
|
|
}, 'AnimationPlaybackEvent interface.');
|