disable-remote-playback-watch-availability-throws.html (731B)
1 <!DOCTYPE html> 2 <html> 3 <title> 4 Test that calling watchAvailability() 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( 16 t, 17 "InvalidStateError", 18 v.remote.watchAvailability(() => {}) 19 ); 20 }, "Test that calling watchAvailability() when disableRemotePlayback attribute is set throws an exception."); 21 </script> 22 </html>