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

Unified Diff: third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html

Issue 2475293003: [RemotePlayback] No monitoring on low-end devices (Closed)
Patch Set: Moved to Platform::initialize() Created 4 years, 1 month 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/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html
diff --git a/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html b/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html
new file mode 100644
index 0000000000000000000000000000000000000000..b0dbb26a260c1b1a2c61834ef5f2a416a8660c27
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test that watchAvailability() throws on low-end devices.</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../media-file.js"></script>
+ </head>
+ <body>
+ <script>
+ async_test(function(t)
+ {
+ var v = document.createElement('video');
+ v.src = findMediaFile('video', 'content/test');
+ document.body.appendChild(v);
+ internals.setIsLowEndDevice(true);
+ v.remote.watchAvailability(t.unreached_func()).then(
+ t.unreached_func(),
+ t.step_func_done(function(e) {
+ assert_equals(e.name, 'NotSupportedError');
+ assert_equals(e.message,
+ 'Availability monitoring is not supported on this device.');
+ internals.setIsLowEndDevice(false);
+ }));
+ }, 'Test that watchAvailability() throws on low-end devices.');
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698