summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-animations/idlharness.window.js
blob: aaf6f58e7bd2fae48f5f94bc6fa127b4d4653c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long

'use strict';

idl_test(
  ['web-animations', 'web-animations-2'],
  ['dom', 'html', 'scroll-animations'],
  idl_array => {
    idl_array.add_objects({
      Animation: ['new Animation()'],
      AnimationPlaybackEvent: ['new AnimationPlaybackEvent("cancel")'],
      Document: ['document'],
      DocumentTimeline: ['document.timeline'],
      KeyframeEffect: ['new KeyframeEffect(null, null)'],
      ShadowRoot: ['shadowRoot'],
    });
    self.shadowRoot = document.createElement("div").attachShadow({mode: "open"});
  }
);