| <!DOCTYPE html> |
| <title>Test request 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 promise_rejects(t, 'NotSupportedError', |
| requestPictureInPictureWithTrustedClick(document.createElement('video'))); |
| }); |
| </script> |