summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/remote-playback/idlharness.window.js
blob: 458bfd0c608b0f36c1b23be6b5a9bc13648e1e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=/common/media.js
// META: timeout=long

'use strict';

// https://w3c.github.io/remoteplayback/

idl_test(
  ['remote-playback'],
  ['html', 'dom'],
  idl_array => {
    try {
      const media = document.createElement('video');
      media.src = getVideoURI('/media/movie_5');
      media.width = media.height = 10;
      document.body.appendChild(media);
      self.media = media;
    } catch (e) {
      // Will be surfaced when media is undefined below.
    }

    idl_array.add_objects({
      HTMLVideoElement: ['media'],
      RemotePlayback: ['media.remote']
    });
  }
);