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

Side by Side Diff: media/test/data/test_key_system_instantiation.html

Issue 408993002: Have media content and chrome browser tests load data from media/test/data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « media/test/data/player.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <video controls="" name="video"> 3 <video controls="" name="video">
4 <!-- This test doesn't play the video, so any file will do 4 <!-- This test doesn't play the video, so any file will do
5 as long as it can be loaded. --> 5 as long as it can be loaded. -->
6 <source src="bear-320x240-av-enc_a.webm" type="video/webm"> 6 <source src="bear-320x240-av_enc-a.webm" type="video/webm">
7 </video> 7 </video>
8 <script type="text/javascript"> 8 <script type="text/javascript">
9 function testKeySystemInstantiation(keySystem) { 9 function testKeySystemInstantiation(keySystem) {
10 var video = document.getElementsByTagName('video')[0]; 10 var video = document.getElementsByTagName('video')[0];
11 var initData = new Uint8Array([0x41, 0x42, 0x43]); 11 var initData = new Uint8Array([0x41, 0x42, 0x43]);
12 try { 12 try {
13 video.webkitGenerateKeyRequest(keySystem, initData); 13 video.webkitGenerateKeyRequest(keySystem, initData);
14 return 'success'; 14 return 'success';
15 } catch (err) { 15 } catch (err) {
16 return err.name; 16 return err.name;
17 } 17 }
18 } 18 }
19 </script> 19 </script>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW
« no previous file with comments | « media/test/data/player.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698