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
exit-picture-in-picture.html
<!DOCTYPE html>
<title>Test exit Picture-in-Picture</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 => {
return requestPictureInPictureWithTrustedClick(document.createElement('video'))
.then(() => document.exitPictureInPicture());
}, 'Exit Picture-in-Picture resolves when there is a Picture-in-Picture video');
promise_test(t => {
return promise_rejects(t, 'InvalidStateError',
document.exitPictureInPicture());
}, 'Exit Picture-in-Picture rejects when there is no Picture-in-Picture video');
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...