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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.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>Test Clear Key handling of non-ASCII responses for update().</tit le> 4 <title>Test Clear Key handling of non-ASCII responses for update().</tit le>
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 <div id="log"></div> 10 <div id="log"></div>
(...skipping 17 matching lines...) Expand all
28 mediaKeySession.update(stringToUint8Array(jwkSet)).then(func tion() { 28 mediaKeySession.update(stringToUint8Array(jwkSet)).then(func tion() {
29 forceTestFailureFromPromise(test, 'Error: update() succe eded'); 29 forceTestFailureFromPromise(test, 'Error: update() succe eded');
30 }, function(error) { 30 }, function(error) {
31 assert_equals(error.name, 'InvalidAccessError'); 31 assert_equals(error.name, 'InvalidAccessError');
32 test.done(); 32 test.done();
33 }); 33 });
34 } 34 }
35 35
36 getSupportedInitDataType().then(function(type) { 36 getSupportedInitDataType().then(function(type) {
37 initDataType = type; 37 initDataType = type;
38 return navigator.requestMediaKeySystemAccess('org.w3.clearke y', [{}]); 38 return requestClearKeySystemAccessForInitType(initDataType);
39 }).then(function(access) { 39 }).then(function(access) {
40 return access.createMediaKeys(); 40 return access.createMediaKeys();
41 }).then(function(mediaKeys) { 41 }).then(function(mediaKeys) {
42 mediaKeySession = mediaKeys.createSession(); 42 mediaKeySession = mediaKeys.createSession();
43 waitForEventAndRunStep('message', mediaKeySession, processMe ssage, test); 43 waitForEventAndRunStep('message', mediaKeySession, processMe ssage, test);
44 return mediaKeySession.generateRequest(initDataType, getInit Data(initDataType)); 44 return mediaKeySession.generateRequest(initDataType, getInit Data(initDataType));
45 }); 45 });
46 }, 'Clear Key update() with non-ASCII response.'); 46 }, 'Clear Key update() with non-ASCII response.');
47 </script> 47 </script>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698