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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.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>Clear Key Playback with Multiple Sessions</title> 4 <title>Clear Key Playback with Multiple Sessions</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-different-av-keys.webm' ; 15 var content = '../content/test-encrypted-different-av-keys.webm' ;
17 var audioMediaKeySession = null; 16 var audioMediaKeySession = null;
18 var videoMediaKeySession = null; 17 var videoMediaKeySession = null;
19 var audioInitDataType = null; 18 var audioInitDataType = null;
20 var videoInitDataType = null; 19 var videoInitDataType = null;
21 var audioInitData = null; 20 var audioInitData = null;
22 var videoInitData = null; 21 var videoInitData = null;
23 var audioKeyProvided = false; 22 var audioKeyProvided = false;
24 var videoKeyProvided = false; 23 var videoKeyProvided = false;
25 24
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return video.setMediaKeys(mediaKeys); 129 return video.setMediaKeys(mediaKeys);
131 }).then(function(result) { 130 }).then(function(result) {
132 video.play(); 131 video.play();
133 }).catch(function(error) { 132 }).catch(function(error) {
134 forceTestFailureFromPromise(test, error); 133 forceTestFailureFromPromise(test, error);
135 }); 134 });
136 }, 'Playback using Clear Key key system with multiple sessions.'); 135 }, 'Playback using Clear Key key system with multiple sessions.');
137 </script> 136 </script>
138 </body> 137 </body>
139 </html> 138 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698