Bug 1770047 [wpt PR 34117] - [Clipboard API] Clipboard Web Custom Formats implementat...
[gecko.git] / testing / web-platform / tests / remote-playback / idlharness.window.js
blob458bfd0c608b0f36c1b23be6b5a9bc13648e1e6b
1 // META: script=/resources/WebIDLParser.js
2 // META: script=/resources/idlharness.js
3 // META: script=/common/media.js
4 // META: timeout=long
6 'use strict';
8 // https://w3c.github.io/remoteplayback/
10 idl_test(
11   ['remote-playback'],
12   ['html', 'dom'],
13   idl_array => {
14     try {
15       const media = document.createElement('video');
16       media.src = getVideoURI('/media/movie_5');
17       media.width = media.height = 10;
18       document.body.appendChild(media);
19       self.media = media;
20     } catch (e) {
21       // Will be surfaced when media is undefined below.
22     }
24     idl_array.add_objects({
25       HTMLVideoElement: ['media'],
26       RemotePlayback: ['media.remote']
27     });
28   }