disable-remote-playback-prompt-throws.html (658B)
1 <!DOCTYPE html> 2 <html> 3 <title> 4 Test that calling prompt() when disableRemotePlayback attribute is set throws an exception 5 </title> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="/common/media.js"></script> 9 <script> 10 promise_test(t => { 11 let v = document.createElement("video"); 12 v.src = getVideoURI("/media/movie_5"); 13 v.disableRemotePlayback = true; 14 15 return promise_rejects_dom(t, "InvalidStateError", v.remote.prompt()); 16 }, "Test that calling prompt() when disableRemotePlayback attribute is set throws an exception."); 17 </script> 18 </html>