| 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>
|
|
|