mirror of
https://github.com/servo/servo.git
synced 2025-07-02 21:13:39 +01:00
16 lines
603 B
HTML
16 lines
603 B
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>
|