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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-encrypted-and-clear-sources.html

Issue 2270383002: clean up encrypted-media tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 <html> 2 <html>
3 <head> 3 <head>
4 <title>Multiple playbacks alternating between encrypted and clear source s.</title> 4 <title>Multiple playbacks alternating between encrypted and clear source s.</title>
5 <script src="encrypted-media-utils.js"></script> 5 <script src="encrypted-media-utils.js"></script>
6 <script src="../../resources/testharness.js"></script> 6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script> 7 <script src="../../resources/testharnessreport.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <video id="testVideo"></video> 10 <video></video>
11 <div id="log"></div>
12 <script> 11 <script>
13 async_test(function(test) 12 async_test(function(test)
14 { 13 {
15 var video = document.getElementById('testVideo'); 14 var video = document.querySelector('video');
16 var isUpdatePromiseResolved = false; 15 var isUpdatePromiseResolved = false;
17 var encryptedEventCount = 0; 16 var encryptedEventCount = 0;
18 var playbackCount = 0; 17 var playbackCount = 0;
19 18
20 // Content to be played. These files must be the same format. 19 // Content to be played. These files must be the same format.
21 var encryptedContent = '../content/test-encrypted.webm'; 20 var encryptedContent = '../content/test-encrypted.webm';
22 var unencryptedContent = '../content/test-vp8-vorbis-webvtt.webm '; 21 var unencryptedContent = '../content/test-vp8-vorbis-webvtt.webm ';
23 22
24 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b, 23 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
25 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]); 24 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 }); 116 });
118 } 117 }
119 118
120 waitForEventAndRunStep('playing', video, onPlaying, test); 119 waitForEventAndRunStep('playing', video, onPlaying, test);
121 waitForEventAndRunStep('encrypted', video, onEncrypted, test); 120 waitForEventAndRunStep('encrypted', video, onEncrypted, test);
122 startPlayback(); 121 startPlayback();
123 }, 'Multiple playbacks alternating between encrypted and clear sourc es.'); 122 }, 'Multiple playbacks alternating between encrypted and clear sourc es.');
124 </script> 123 </script>
125 </body> 124 </body>
126 </html> 125 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698