https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e8aba3a48d9c0309de2225f50a33a6ff2a6a0916 authored by Kent Tamura on 21 December 2018, 05:07:49 UTC
html, xhr: Add tests for 'formdata' event
Tip revision: e8aba3a
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