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

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

Issue 2401013002: Make MediaSession per frame as an attribute of Navigator (Closed)
Patch Set: fixed tests Created 4 years, 2 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>MediaSession() constructor</title>
whywhat 2016/10/10 20:45:09 hm, do we need a test for that? I haven't found an
Zhiqiang Zhang (Slow) 2016/10/10 21:21:18 OK, I'll remove this test. These is a test for the
2 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
4 <canvas>
5 <object id="f"></object>
6 </canvas>
7 <script> 5 <script>
6
8 test(function() { 7 test(function() {
9 f.focus(); 8 assert_throws(new TypeError(), () => { var mediaSession = new MediaSession(); }, "Illegal constructor");
10 }, "crbug.com/587263 focusing plugin object in canvas fallback may dereference n ullptr"); 9 });
10
11 </script> 11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698