https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f9e3995a8d4d43f6ae0f1949f8615d2dfcdb7f66 authored by Sandra Sun on 28 March 2018, 01:57:21 UTC
Implement snapping for scroll with intended direction and end position.
Tip revision: f9e3995
picture-in-picture-element.html
<!DOCTYPE html>
<title>Test Picture-in-Picture element</title>
<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(t => {
  assert_equals(document.pictureInPictureElement, null);
  const video = document.createElement('video');

  return requestPictureInPictureWithTrustedClick(video)
  .then(() => {
    assert_equals(document.pictureInPictureElement, video);
    return document.exitPictureInPicture();
  })
  .then(() => {
    assert_equals(document.pictureInPictureElement, null);
  })
});
</script>
back to top