Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: LayoutTests/media/mediasession/mediasession-constructor.html

Issue 1206283002: Add MediaSession runtime flag along with stub MediaSession object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix title and add instanceof assert to test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>MediaSession() constructor</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 test(function() {
8 // Test expects to be run either manually by passing the MediaSession flag or as part of the virtual mediasession
9 // testsuite.
10 assert_true(!window.internals || window.internals.runtimeFlags.mediaSessio nEnabled);
11
12 var mediaSession = new MediaSession();
13 assert_true(mediaSession instanceof MediaSession);
14 });
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698