https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 330c54de5826e56ea3dfd314574a29043518e7e8 authored by Marcos Cáceres on 08 August 2018, 10:39:23 UTC
Add edenchuang
Tip revision: 330c54d
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