Revision 6a53accb3f4093ae4cd2dc8f7a086cd33c0b947f authored by Chris Nardi on 19 March 2018, 18:03:21 UTC, committed by Chris Nardi on 19 March 2018, 18:03:21 UTC
https://github.com/w3c/fxtf-drafts/issues/231 was resolved by allowing this grammar in the spec.
1 parent 730eca9
enter-picture-in-picture.html
<!DOCTYPE html>
<title>Test enterpictureinpicture event</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 => {
const video = document.createElement('video');
video.addEventListener('enterpictureinpicture', t.step_func_done(event => {
assert_equals(event.target, video);
assert_equals(event.bubbles, true);
assert_equals(event.cancelable, false);
assert_equals(event.composed, false);
assert_equals(document.pictureInPictureElement, video);
}));
return requestPictureInPictureWithTrustedClick(video);
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...