Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 39 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /picture-in-picture/idlharness.window.html - WPT Dashboard Interop Dashboard
// 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
// META: timeout=long
'use strict';
idl_test(
['picture-in-picture'],
['html', 'dom'],
async idl_array => {
idl_array.add_objects({
Document: ['document'],
DocumentOrShadowRoot: ['document'],
HTMLVideoElement: ['video'],
PictureInPictureWindow: ['pipw'],
PictureInPictureEvent: ['new PictureInPictureEvent("type", { pictureInPictureWindow: pipw })'],
});
self.video = await loadVideo();
self.pipw = await requestPictureInPictureWithTrustedClick(video);
}
);