https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f941f71d5aae723c2204aa8c1024280b9ecab055 authored by Sam Goto on 18 December 2018, 20:56:38 UTC
Idle Detection API: Prototype
Tip revision: f941f71
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