https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 10a0d21c5403e48ddb5372916f76c34b462e18da authored by Philip Jägenstedt on 29 March 2018, 09:12:14 UTC
Invert (fix) the order of `wpt make-hosts-file` instructions
Tip revision: 10a0d21
disable-remote-playback-prompt-throws.html
<!DOCTYPE html>
<html>
<title>Test that calling prompt() 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.prompt());
}, 'Test that calling prompt() when disableRemotePlayback attribute is set throws an exception.');
</script>
</html>
back to top