mirror of
https://github.com/servo/servo.git
synced 2025-07-11 09:23:40 +01:00
22 lines
575 B
JavaScript
22 lines
575 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://w3c.github.io/web-animations/#documenttimeline
|
|
|
|
'use strict';
|
|
|
|
promise_test(async () => {
|
|
const text = await fetch('/interfaces/web-animations.idl').then(r => r.text());
|
|
const idlArray = new IdlArray();
|
|
idlArray.add_idls(text, {
|
|
only: [
|
|
'AnimationTimeline',
|
|
'DocumentTimelineOptions',
|
|
'DocumentTimeline',
|
|
]
|
|
});
|
|
idlArray.add_objects({ DocumentTimeline: ['document.timeline'] });
|
|
|
|
idlArray.test();
|
|
done();
|
|
}, 'DocumentTimeline interface.');
|