mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed
This commit is contained in:
parent
4997ec26c2
commit
a5af9a106a
192 changed files with 3943 additions and 1927 deletions
|
@ -8,24 +8,19 @@
|
|||
|
||||
// https://wicg.github.io/picture-in-picture/
|
||||
|
||||
promise_test(async () => {
|
||||
try {
|
||||
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);
|
||||
} catch (e) {
|
||||
// Will be surfaced when video/pipw are undefined below.
|
||||
}
|
||||
|
||||
idl_test(
|
||||
['picture-in-picture'],
|
||||
['html', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
Document: ['document'],
|
||||
DocumentOrShadowRoot: ['document'],
|
||||
HTMLVideoElement: ['video'],
|
||||
PictureInPictureWindow: ['pipw'],
|
||||
});
|
||||
},
|
||||
'picture-in-picture interfaces.');
|
||||
})
|
||||
},
|
||||
'picture-in-picture interfaces.'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue