https://github.com/web-platform-tests/wpt
Revision 94e78fddb888185d7d5d0f737c4c9b84bd638d59 authored by Mike Taylor on 30 March 2018, 21:08:48 UTC, committed by Anne van Kesteren on 09 April 2018, 08:27:28 UTC
See https://github.com/whatwg/dom/issues/625 for details.
1 parent fc7c0b7
Raw File
Tip revision: 94e78fddb888185d7d5d0f737c4c9b84bd638d59 authored by Mike Taylor on 30 March 2018, 21:08:48 UTC
Add tests for Event.srcElement
Tip revision: 94e78fd
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