blob: 9570c0f0dbf2c8c0620b55d9c6610bd4a9c3c76e [file] [log] [blame]
<!doctype html>
<meta charset=utf-8>
<title>AnimationPlaybackEvent IDL</title>
<link rel="help"
href="https://drafts.csswg.org/web-animations/#animationplaybackevent">
<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_untested_idls(`dictionary EventInit {
boolean bubbles = false;
boolean cancelable = false;
boolean composed = false;
};`);
idlArray.add_idls(text, {
only: [
'AnimationPlaybackEventInit',
'AnimationPlaybackEvent',
]
});
idlArray.add_untested_idls('interface Event {};');
idlArray.add_objects({
AnimationPlaybackEvent: ['new AnimationPlaybackEvent(\'cancel\')'],
});
idlArray.test();
done();
}, 'AnimationPlaybackEvent interface.');
</script>