Bug 1498407 [wpt PR 13472] - Clean Picture-in-Picture Web Platform Tests, a=testonly
authorFrançois Beaufort <beaufort.francois@gmail.com>
Mon, 15 Oct 2018 17:16:23 +0000
changeset 489977 e00a419d38d9f0f627059ff93b75239aee35acb1
parent 489976 9445f12f346989d2cbe39946305df72667c72e3a
child 489978 e2bf875008c1d357bd9d530ac1557b6c89d9f217
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstestonly
bugs1498407, 13472, 1275949, 598858
milestone64.0a1
Bug 1498407 [wpt PR 13472] - Clean Picture-in-Picture Web Platform Tests, a=testonly Automatic update from web-platform-testsClean Picture-in-Picture Web Platform Tests Change-Id: I05ec82f95e2a1629d0c51f7f7f942fda5c70a465 Reviewed-on: https://chromium-review.googlesource.com/c/1275949 Reviewed-by: Mounir Lamouri <mlamouri@chromium.org> Commit-Queue: Fran├žois Beaufort <beaufort.francois@gmail.com> Cr-Commit-Position: refs/heads/master@{#598858} -- wpt-commits: b05cafed9d8fd0db62d9ba0ccff75f1c782fbe92 wpt-pr: 13472
testing/web-platform/tests/picture-in-picture/resources/picture-in-picture-helpers.js
--- a/testing/web-platform/tests/picture-in-picture/resources/picture-in-picture-helpers.js
+++ b/testing/web-platform/tests/picture-in-picture/resources/picture-in-picture-helpers.js
@@ -1,14 +1,8 @@
-if (!('pictureInPictureEnabled' in document)) {
-  HTMLVideoElement.prototype.requestPictureInPicture = function() {
-    return Promise.reject('Picture-in-Picture API is not available');
-  }
-}
-
 function loadVideo(activeDocument, sourceUrl) {
   return new Promise((resolve, reject) => {
     const document = activeDocument || window.document;
     const video = document.createElement('video');
     video.src = sourceUrl || getVideoURI('/media/movie_5');
     video.onloadedmetadata = () => { resolve(video); };
     video.onerror = error => { reject(error); };
   });