https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d56e1a8e1d3a6661b4c0ba56b67d48338426e3c9 authored by Ms2ger on 02 October 2018, 12:50:48 UTC
Refactor drawimage_svg_image_1.html.
Tip revision: d56e1a8
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