gecko-dev/testing/web-platform/tests/web-animations/interfaces/DocumentTimeline/idlharness.window.js
Luke Bjerring b71d9619a8 Bug 1473452 [wpt PR 11794] - Update the web-animations IDL file, a=testonly
Automatic update from web-platform-testsUpdate the web-animations IDL file (#11794)

--

wpt-commits: e4dabc9a0532a6213c1a8db3c7a3b5c4d3fb6d88
wpt-pr: 11794
2018-07-25 10:30:37 +03:00

22 lines
575 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// https://w3c.github.io/web-animations/#documenttimeline
'use strict';
promise_test(async () => {
const text = await fetch('/interfaces/web-animations.idl').then(r => r.text());
const idlArray = new IdlArray();
idlArray.add_idls(text, {
only: [
'AnimationTimeline',
'DocumentTimelineOptions',
'DocumentTimeline',
]
});
idlArray.add_objects({ DocumentTimeline: ['document.timeline'] });
idlArray.test();
done();
}, 'DocumentTimeline interface.');