servo/tests/wpt/web-platform-tests/web-animations/interfaces/Animation/idlharness.html

29 lines
1 KiB
HTML

<!doctype html>
<meta charset=utf-8>
<title>Animation IDL</title>
<link rel="help" href="https://drafts.csswg.org/web-animations/#animation">
<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 idl = await fetch('/interfaces/web-animations.idl').then(r => r.text());
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
const html = await fetch('/interfaces/html.idl').then(r => r.text());
const idlArray = new IdlArray();
idlArray.add_idls(idl, {only: ['Animation', 'AnimationPlayState']});
idlArray.add_dependency_idls(idl);
idlArray.add_dependency_idls(dom);
idlArray.add_dependency_idls(html);
idlArray.add_untested_idls('interface CSSPseudoElement {};');
idlArray.add_objects( { Animation: ['new Animation()'] } );
idlArray.test();
done();
}, 'Animation interface.');
</script>