https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 23f93ed2136650611dbb91bbe2e78698a1f75806 authored by Ben Wagner on 11 December 2018, 21:09:19 UTC
Add wpt test for font feature precedence for 'dlig'.
Tip revision: 23f93ed
picture-in-picture-element.html
<!DOCTYPE html>
<title>Test Picture-in-Picture element</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 => {
  assert_equals(document.pictureInPictureElement, null);
  const video = await loadVideo();

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