https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1553cb43af08443e2d04a01bd6925db002234174 authored by Ian Clelland on 28 September 2017, 19:28:02 UTC
Add Web Bluetooth as a policy-controlled feature
Tip revision: 1553cb4
disable-remote-playback-watch-availability-throws.html
<!DOCTYPE html>
<html>
<title>Test that calling watchAvailability() when disableRemotePlayback attribute is set throws an exception</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/media.js"></script>
<script>
promise_test(t => {
  var v = document.createElement('video');
  v.src = getVideoURI('movie_5');
  v.disableRemotePlayback = true;

  return promise_rejects(t, 'InvalidStateError',
                         v.remote.watchAvailability(function() {}));
}, 'Test that calling watchAvailability() when disableRemotePlayback attribute is set throws an exception.');
</script>
</html>
back to top