Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / media / test / data / test_key_system_instantiation.html
blob01999208e9468df2c2d20449c684300deda764ce
1 <html>
2 <body>
3 <video controls="" name="video">
4 <!-- This test doesn't play the video, so any file will do
5 as long as it can be loaded. -->
6 <source src="bear-320x240-av_enc-a.webm" type="video/webm">
7 </video>
8 <script type="text/javascript">
9 function testKeySystemInstantiation(keySystem) {
10 var video = document.getElementsByTagName('video')[0];
11 var initData = new Uint8Array([0x41, 0x42, 0x43]);
12 try {
13 video.webkitGenerateKeyRequest(keySystem, initData);
14 return 'success';
15 } catch (err) {
16 return err.name;
19 </script>
20 </body>
21 </html>