mirror of
https://github.com/servo/servo.git
synced 2025-07-01 04:23:39 +01:00
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
<!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>
|