blob: 3c21f017b48293f778eca1061a7215187fda9eac [file] [log] [blame]
mlamouri3d90a802017-02-09 20:50:211<!DOCTYPE html>
2<html>
3<title>Test that calling watchAvailability() 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>
8promise_test(t => {
9 var v = document.createElement('video');
10 v.src = getVideoURI('movie_5');
11 v.disableRemotePlayback = true;
12
13 return promise_rejects(t, 'InvalidStateError',
14 v.remote.watchAvailability(function() {}));
15}, 'Test that calling watchAvailability() when disableRemotePlayback attribute is set throws an exception.');
16</script>
17</html>