Bug 1770047 [wpt PR 34117] - [Clipboard API] Clipboard Web Custom Formats implementat...
[gecko.git] / testing / web-platform / tests / remote-playback / disable-remote-playback-prompt-throws.html
blob18333842b6a180b668ad953530c04ba4fcd79e58
1 <!DOCTYPE html>
2 <html>
3 <title>Test that calling prompt() when disableRemotePlayback attribute is set throws an exception</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="/common/media.js"></script>
7 <script>
8 promise_test(t => {
9 var v = document.createElement('video');
10 v.src = getVideoURI('/media/movie_5');
11 v.disableRemotePlayback = true;
13 return promise_rejects_dom(t, 'InvalidStateError', v.remote.prompt());
14 }, 'Test that calling prompt() when disableRemotePlayback attribute is set throws an exception.');
15 </script>
16 </html>