Revision 8efcf2b57818807058a785bc55ebe13cb0139123 authored by Philip Jägenstedt on 29 March 2018, 13:44:01 UTC, committed by Geoffrey Sneddon on 29 March 2018, 13:44:01 UTC
This was inverted so that the Windows instructions were printed on
Linux. Rather than just changing the condition, switch the messages,
to match the order of some preceding code.
1 parent 604d17e
Raw File
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