Chromium Code Reviews| Index: LayoutTests/media/mediasession/mediasession-constructor.html |
| diff --git a/LayoutTests/media/mediasession/mediasession-constructor.html b/LayoutTests/media/mediasession/mediasession-constructor.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0a98397d187dd892d3e42c3a1ca15df82ae99fec |
| --- /dev/null |
| +++ b/LayoutTests/media/mediasession/mediasession-constructor.html |
| @@ -0,0 +1,14 @@ |
| +<!DOCTYPE html> |
| +<title>Test that the media session constructor exists</title> |
|
philipj_slow
2015/06/26 12:34:40
Maybe just "MediaSession() constructor" as this te
davve
2015/06/26 12:50:50
Done.
|
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<div id="log"></div> |
| +<script> |
| + test(function() { |
| + // Test expects to be run either manually by passing the MediaSession flag or as part of the virtual mediasession |
| + // testsuite. |
| + assert_true(!window.internals || window.internals.runtimeFlags.mediaSessionEnabled); |
| + |
| + var mediaSession = new MediaSession(); |
|
philipj_slow
2015/06/26 12:34:41
Maybe assert_true(mediaSession instanceof MediaSes
davve
2015/06/26 12:50:50
Done.
|
| + }); |
| +</script> |