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
request-picture-in-picture-twice.html
<!DOCTYPE html>
<title>Test request Picture-in-Picture on two videos</title>
<script src="/common/media.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="resources/picture-in-picture-helpers.js"></script>
<body></body>
<script>
promise_test(async t => {
  const video1 = await loadVideo();
  const video2 = await loadVideo();
  await test_driver.bless('request Picture-in-Picture');
  const promise = video1.requestPictureInPicture();
  await promise_rejects(t, 'NotAllowedError', video2.requestPictureInPicture());
  return promise;
}, 'request Picture-in-Picture consumes user gesture');
</script>
back to top