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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-at-same-time.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>Set MediaKeys multiple times in parallel</title> 4 <title>Set MediaKeys multiple times in parallel</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="video"></video> 10 <video id="video"></video>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 var mediaKeys2; 60 var mediaKeys2;
61 var mediaKeys3; 61 var mediaKeys3;
62 var mediaKeys4; 62 var mediaKeys4;
63 var mediaKeys5; 63 var mediaKeys5;
64 64
65 // Start a video now so that it is waiting for MediaKeys 65 // Start a video now so that it is waiting for MediaKeys
66 // in order to continue. 66 // in order to continue.
67 video.src = '../content/test-encrypted.webm'; 67 video.src = '../content/test-encrypted.webm';
68 video.play(); 68 video.play();
69 return wait_for_encrypted_event(video).then(function() { 69 return wait_for_encrypted_event(video).then(function() {
70 return navigator.requestMediaKeySystemAccess('org.w3.clearke y', [{}]); 70 return requestClearKeySystemAccessForInitType('webm');
71 }).then(function(result) { 71 }).then(function(result) {
72 access = result; 72 access = result;
73 return access.createMediaKeys(); 73 return access.createMediaKeys();
74 }).then(function(result) { 74 }).then(function(result) {
75 mediaKeys1 = result; 75 mediaKeys1 = result;
76 return access.createMediaKeys(); 76 return access.createMediaKeys();
77 }).then(function(result) { 77 }).then(function(result) {
78 mediaKeys2 = result; 78 mediaKeys2 = result;
79 return access.createMediaKeys(); 79 return access.createMediaKeys();
80 }).then(function(result) { 80 }).then(function(result) {
(...skipping 14 matching lines...) Expand all
95 return count_promise_results([p1, p2, p3, p4, p5]); 95 return count_promise_results([p1, p2, p3, p4, p5]);
96 }).then(function(count) { 96 }).then(function(count) {
97 // At least one of the setMediaKeys() calls should have 97 // At least one of the setMediaKeys() calls should have
98 // succeeded. 98 // succeeded.
99 assert_greater_than(count, 0); 99 assert_greater_than(count, 0);
100 }); 100 });
101 }, 'Set MediaKeys multiple times in parallel.'); 101 }, 'Set MediaKeys multiple times in parallel.');
102 </script> 102 </script>
103 </body> 103 </body>
104 </html> 104 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698