blob: b47e30eebaa1082ed1d3c638b8aedb81bac96bdb [file] [log] [blame]
mlamouri3d90a802017-02-09 20:50:211<!DOCTYPE html>
2<html>
Fritz Heidenfcda0e02023-09-05 22:48:043 <title>
Mark Foltz (Google)1c4413c2023-09-18 10:52:004 Test that calling prompt() when disableRemotePlayback attribute is set throws an exception
Fritz Heidenfcda0e02023-09-05 22:48:045 </title>
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script src="/common/media.js"></script>
9 <script>
Mark Foltz (Google)1c4413c2023-09-18 10:52:0010 promise_test(t => {
Fritz Heidenfcda0e02023-09-05 22:48:0411 let v = document.createElement("video");
12 v.src = getVideoURI("/media/movie_5");
13 v.disableRemotePlayback = true;
mlamouri3d90a802017-02-09 20:50:2114
Fritz Heidenfcda0e02023-09-05 22:48:0415 return promise_rejects_dom(t, "InvalidStateError", v.remote.prompt());
16 }, "Test that calling prompt() when disableRemotePlayback attribute is set throws an exception.");
17 </script>
mlamouri3d90a802017-02-09 20:50:2118</html>