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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-lifetime-reload.html

Issue 2270383002: clean up encrypted-media tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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>Reloading during encrypted media playback</title> 4 <title>Reloading during encrypted media playback</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 content = '../content/test-encrypted.webm'; 15 var content = '../content/test-encrypted.webm';
17 var mediaKeySession = null; 16 var mediaKeySession = null;
18 var hasSessionUpdateSucceeded = false; 17 var hasSessionUpdateSucceeded = false;
19 var encryptedEventCount = 0; 18 var encryptedEventCount = 0;
20 19
21 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b, 20 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
22 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]); 21 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]);
23 22
24 function onEncrypted(event) 23 function onEncrypted(event)
25 { 24 {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return video.setMediaKeys(mediaKeys); 89 return video.setMediaKeys(mediaKeys);
91 }).then(function(result) { 90 }).then(function(result) {
92 video.play(); 91 video.play();
93 }).catch(function(error) { 92 }).catch(function(error) {
94 forceTestFailureFromPromise(test, error); 93 forceTestFailureFromPromise(test, error);
95 }); 94 });
96 }, 'Reloading during encrypted media playback.'); 95 }, 'Reloading during encrypted media playback.');
97 </script> 96 </script>
98 </body> 97 </body>
99 </html> 98 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698