3 <title>Test that calling cancelWatchAvailability() 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>
9 var v
= document
.createElement('video');
10 v
.src
= getVideoURI('/media/movie_5');
12 v
.remote
.watchAvailability(function() {})
14 v
.disableRemotePlayback
= true;
15 v
.remote
.cancelWatchAvailability(id
).then(
18 assert_equals(e
.name
, 'InvalidStateError');
19 v
.remote
.cancelWatchAvailability().then(
21 t
.step_func_done(e
=> {
22 assert_equals(e
.name
, 'InvalidStateError');
26 }, t
.unreached_func());
27 }, 'Test that calling cancelWatchAvailability() when disableRemotePlayback attribute is set throws an exception.');