servo/tests/wpt/web-platform-tests/web-animations/interfaces/DocumentTimeline/idlharness.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>