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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-events.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>Verify v2 events</title> 4 <title>Verify v2 events</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 <div id="log"></div> 10 <div id="log"></div>
(...skipping 29 matching lines...) Expand all
40 { 40 {
41 assert_true(event instanceof Event); 41 assert_true(event instanceof Event);
42 assert_equals(event.target, mediaKeySession); 42 assert_equals(event.target, mediaKeySession);
43 assert_equals(event.type, 'keystatuseschange'); 43 assert_equals(event.type, 'keystatuseschange');
44 test.done(); 44 test.done();
45 } 45 }
46 46
47 getSupportedInitDataType().then(function(type) { 47 getSupportedInitDataType().then(function(type) {
48 initDataType = type; 48 initDataType = type;
49 initData = getInitData(initDataType); 49 initData = getInitData(initDataType);
50 return navigator.requestMediaKeySystemAccess('org.w3.clearke y', [{}]); 50 return requestClearKeySystemAccessForInitType(initDataType);
51 }).then(function(access) { 51 }).then(function(access) {
52 return access.createMediaKeys(); 52 return access.createMediaKeys();
53 }).then(test.step_func(function(mediaKeys) { 53 }).then(test.step_func(function(mediaKeys) {
54 mediaKeySession = mediaKeys.createSession(); 54 mediaKeySession = mediaKeys.createSession();
55 waitForEventAndRunStep('message', mediaKeySession, test.step _func(processMessage), test); 55 waitForEventAndRunStep('message', mediaKeySession, test.step _func(processMessage), test);
56 return mediaKeySession.generateRequest(initDataType, initDat a); 56 return mediaKeySession.generateRequest(initDataType, initDat a);
57 })).catch(test.step_func(function(error) { 57 })).catch(test.step_func(function(error) {
58 forceTestFailureFromPromise(test, error); 58 forceTestFailureFromPromise(test, error);
59 })); 59 }));
60 }, 'Verify v2 events.'); 60 }, 'Verify v2 events.');
61 </script> 61 </script>
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698