Chromium Code Reviews| 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..ea4122a518436556656a85b1adeabb3a5858d119 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html |
| @@ -0,0 +1,27 @@ |
| +<!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); |
|
mlamouri (slow - plz ping)
2016/11/15 18:18:32
Would this leak to other tests?
whywhat
2016/11/15 20:24:24
I dunno :/ If we reuse the instance of the content
|
| + 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.'); |
| + })); |
| + }, 'Test that watchAvailability() throws on low-end devices.'); |
| + </script> |
| + </body> |
| +</html> |