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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-events.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>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>
11 <script> 10 <script>
12 // Currently Clear Key only generates aynchronous "message" and 11 // Currently Clear Key only generates aynchronous "message" and
13 // "keychange" events. 12 // "keychange" events.
14 async_test(function(test) 13 async_test(function(test)
15 { 14 {
16 var initDataType; 15 var initDataType;
17 var initData; 16 var initData;
18 var mediaKeySession; 17 var mediaKeySession;
19 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b, 18 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
20 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]); 19 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 mediaKeySession = mediaKeys.createSession(); 51 mediaKeySession = mediaKeys.createSession();
53 waitForEventAndRunStep('message', mediaKeySession, test.step _func(processMessage), test); 52 waitForEventAndRunStep('message', mediaKeySession, test.step _func(processMessage), test);
54 return mediaKeySession.generateRequest(initDataType, initDat a); 53 return mediaKeySession.generateRequest(initDataType, initDat a);
55 })).catch(test.step_func(function(error) { 54 })).catch(test.step_func(function(error) {
56 forceTestFailureFromPromise(test, error); 55 forceTestFailureFromPromise(test, error);
57 })); 56 }));
58 }, 'Verify v2 events.'); 57 }, 'Verify v2 events.');
59 </script> 58 </script>
60 </body> 59 </body>
61 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698