| 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..f39bb216811228dd9c909ff9a62cb33b72194ca3
|
| --- /dev/null
|
| +++ b/LayoutTests/media/mediasession/mediasession-constructor.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<title>MediaSession() constructor</title>
|
| +<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();
|
| + assert_true(mediaSession instanceof MediaSession);
|
| + });
|
| +</script>
|
|
|