https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 614c1ccac5f885e58444fe74a2aedd120d2ca73f authored by Marcos Cáceres on 21 August 2018, 05:04:44 UTC
Add romandev
Tip revision: 614c1cc
idlharness.window.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=/common/media.js

'use strict';

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

idl_test(
  ['remote-playback'],
  ['html', 'dom'],
  idl_array => {
    try {
      const media = document.createElement('video');
      media.src = getVideoURI('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']
    });
  }
);
back to top