Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: third_party/WebKit/LayoutTests/media/remoteplayback/disable-remote-playback-prompt-throws.html

Issue 2348703002: [Blink, RemotePlayback] Added the disableRemotePlayback check to prompt(). (Closed)
Patch Set: Removed the newline from expected.txt Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698