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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-multiple-sessions.html

Issue 2084053002: EME: Update tests so 'audioCapabilities' always provided (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 id="testVideo"></video>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 function onTimeUpdate(event) 115 function onTimeUpdate(event)
116 { 116 {
117 if (event.target.currentTime < 0.2) 117 if (event.target.currentTime < 0.2)
118 return; 118 return;
119 119
120 test.done(); 120 test.done();
121 } 121 }
122 122
123 navigator.requestMediaKeySystemAccess('org.w3.clearkey', [{}]).t hen(function(access) { 123 requestClearKeySystemAccessForInitType('webm').then(function(acc ess) {
124 return access.createMediaKeys(); 124 return access.createMediaKeys();
125 }).then(function(mediaKeys) { 125 }).then(function(mediaKeys) {
126 waitForEventAndRunStep('encrypted', video, onEncrypted, test ); 126 waitForEventAndRunStep('encrypted', video, onEncrypted, test );
127 waitForEventAndRunStep('playing', video, onPlaying, test); 127 waitForEventAndRunStep('playing', video, onPlaying, test);
128 video.src = '../content/test-encrypted-different-av-keys.web m'; 128 video.src = '../content/test-encrypted-different-av-keys.web m';
129 return video.setMediaKeys(mediaKeys); 129 return video.setMediaKeys(mediaKeys);
130 }).then(function(result) { 130 }).then(function(result) {
131 video.play(); 131 video.play();
132 }).catch(function(error) { 132 }).catch(function(error) {
133 forceTestFailureFromPromise(test, error); 133 forceTestFailureFromPromise(test, error);
134 }); 134 });
135 }, 'Playback using Clear Key key system with multiple sessions.'); 135 }, 'Playback using Clear Key key system with multiple sessions.');
136 </script> 136 </script>
137 </body> 137 </body>
138 </html> 138 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698