https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d6ebd711521b88acf00f3f1bbd5c4560500e92ea authored by Brandon Jones on 20 November 2018, 17:24:18 UTC
Remove the multiview attribute from XRWebGLLayer
Tip revision: d6ebd71
idlharness.window.js
// META: script=/common/media.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=resources/picture-in-picture-helpers.js

'use strict';

// https://wicg.github.io/picture-in-picture/

idl_test(
  ['picture-in-picture'],
  ['html', 'dom'],
  async idl_array => {
    idl_array.add_objects({
      Document: ['document'],
      DocumentOrShadowRoot: ['document'],
      HTMLVideoElement: ['video'],
      PictureInPictureWindow: ['pipw'],
    });

    self.video = await loadVideo();
    self.pipw = await requestPictureInPictureWithTrustedClick(video);
  }
);
back to top