| mlamouri | 3d90a80 | 2017-02-09 20:50:21 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <title>Test that calling watchAvailability() when disableRemotePlayback attribute is set throws an exception</title> |
| 4 | <script src="/resources/testharness.js"></script> |
| 5 | <script src="/resources/testharnessreport.js"></script> |
| 6 | <script src="/common/media.js"></script> |
| 7 | <script> |
| 8 | promise_test(t => { |
| 9 | var v = document.createElement('video'); |
| 10 | v.src = getVideoURI('movie_5'); |
| 11 | v.disableRemotePlayback = true; |
| 12 | |
| 13 | return promise_rejects(t, 'InvalidStateError', |
| 14 | v.remote.watchAvailability(function() {})); |
| 15 | }, 'Test that calling watchAvailability() when disableRemotePlayback attribute is set throws an exception.'); |
| 16 | </script> |
| 17 | </html> |