Bug 1646700 [wpt PR 24235] - Update picture-in-picture idlharness test, a=testonly
authorStephen McGruer <smcgruer@chromium.org>
Thu, 09 Jul 2020 14:16:21 +0000
changeset 539815 438e66bc91130eb760392c14af2ffacfebc22dc0
parent 539814 714e7a695682327c902c8adb2dde4f39eab55d6a
child 539816 f678ab03e3baf3d6a01417b7dbfa1833508130e6
push id37586
push userccoroiu@mozilla.com
push dateFri, 10 Jul 2020 16:06:24 +0000
treeherdermozilla-central@4e9d6619c9d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1646700, 24235, 24226
milestone80.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1646700 [wpt PR 24235] - Update picture-in-picture idlharness test, a=testonly Automatic update from web-platform-tests Update picture-in-picture idlharness test (#24235) The actual idl update already happened in https://github.com/web-platform-tests/wpt/commit/1449b69c394008d51cb625bd1adbde782c01e8be, but the associated test was not updated. Closes https://github.com/web-platform-tests/wpt/pull/24226 -- wpt-commits: b70f4c4663087bd441962e54ee6d062d39fc2ab5 wpt-pr: 24235
testing/web-platform/tests/picture-in-picture/idlharness.window.js
--- a/testing/web-platform/tests/picture-in-picture/idlharness.window.js
+++ b/testing/web-platform/tests/picture-in-picture/idlharness.window.js
@@ -14,14 +14,15 @@ 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);
   }
 );