mirror of
https://github.com/servo/servo.git
synced 2025-07-01 12:33:40 +01:00
30 lines
855 B
HTML
30 lines
855 B
HTML
<!doctype html>
|
|
<meta charset=utf-8>
|
|
<title>DocumentTimeline IDL</title>
|
|
<link rel="help" href="https://drafts.csswg.org/web-animations/#documenttimeline">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/WebIDLParser.js"></script>
|
|
<script src="/resources/idlharness.js"></script>
|
|
<div id="log"></div>
|
|
<script>
|
|
'use strict';
|
|
|
|
promise_test(async () => {
|
|
const text = await fetch('/interfaces/web-animations.idl').then(response =>
|
|
response.text(),
|
|
);
|
|
const idlArray = new IdlArray();
|
|
idlArray.add_idls(text, {
|
|
only: [
|
|
'AnimationTimeline',
|
|
'DocumentTimelineOptions',
|
|
'DocumentTimeline',
|
|
]
|
|
});
|
|
idlArray.add_objects({ DocumentTimeline: ['document.timeline'] });
|
|
|
|
idlArray.test();
|
|
done();
|
|
}, 'DocumentTimeline interface.');
|
|
</script>
|