| Index: third_party/WebKit/LayoutTests/media/remoteplayback/disable-remote-playback-prompt-throws.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/remoteplayback/disable-remote-playback-prompt-throws.html b/third_party/WebKit/LayoutTests/media/remoteplayback/disable-remote-playback-prompt-throws.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..143456587902254c92aa00c145be929d9f6cf7d7
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/media/remoteplayback/disable-remote-playback-prompt-throws.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <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="../media-file.js"></script>
|
| + </head>
|
| + <body>
|
| + <script>
|
| + promise_test(function(test)
|
| + {
|
| + var v = document.createElement('video');
|
| + v.src = findMediaFile('video', 'content/test');
|
| + v.disableRemotePlayback = true
|
| + document.body.appendChild(v);
|
| +
|
| + return promise_rejects(
|
| + test,
|
| + new DOMException('disableRemotePlayback attribute is present.', 'InvalidStateError'),
|
| + v.remote.prompt());
|
| + }, 'Test that calling prompt() when disableRemotePlayback attribute is set throws an exception.');
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|