mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
28 lines
948 B
HTML
28 lines
948 B
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 text = await fetch('/interfaces/web-animations.idl').then(response =>
|
|
response.text(),
|
|
);
|
|
const idlArray = new IdlArray();
|
|
idlArray.add_idls(text, { only: ['Animation', 'AnimationPlayState'] });
|
|
|
|
idlArray.add_untested_idls('interface AnimationTimeline {};');
|
|
idlArray.add_untested_idls('interface EventHandler {};');
|
|
idlArray.add_untested_idls('interface EventTarget {};');
|
|
idlArray.add_objects( { Animation: ['new Animation()'] } );
|
|
idlArray.test();
|
|
done();
|
|
}, 'Animation interface.');
|
|
|
|
</script>
|