| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>MediaSession() constructor</title> | 2 <title>MediaSession() constructor</title> |
| 3 <script src="../../resources/testharness.js"></script> | 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> | 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <div id="log"></div> | |
| 6 <script> | 5 <script> |
| 7 test(function() { | 6 test(function() { |
| 8 assert_true(!window.internals || window.internals.runtimeFlags.mediaSessio
nEnabled, | 7 assert_true(!window.internals || window.internals.runtimeFlags.mediaSessio
nEnabled, |
| 9 "Run either manually by passing the MediaSession flag or as part of th
e virtual mediasession testsuite."); | 8 "Run either manually by passing the MediaSession flag or as part of th
e virtual mediasession testsuite."); |
| 10 console.warn("dummy log entry to avoid an empty -expected.txt in virtual/"
); | 9 console.warn("dummy log entry to avoid an empty -expected.txt in virtual/"
); |
| 11 | 10 |
| 12 var mediaSession = new MediaSession(); | 11 var mediaSession = new MediaSession(); |
| 13 assert_true(mediaSession instanceof MediaSession); | 12 assert_true(mediaSession instanceof MediaSession); |
| 14 }); | 13 }); |
| 15 </script> | 14 </script> |
| OLD | NEW |