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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-clearkey-update-non-ascii-input.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>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>
11 <script> 10 <script>
12 // This test passes |response| to update() as a JSON Web Key Set. 11 // This test passes |response| to update() as a JSON Web Key Set.
13 // CDMs other than Clear Key won't expect |response| in this format. 12 // CDMs other than Clear Key won't expect |response| in this format.
14 13
15 async_test(function(test) 14 async_test(function(test)
16 { 15 {
17 var initDataType; 16 var initDataType;
18 var initData; 17 var initData;
19 var mediaKeySession; 18 var mediaKeySession;
20 19
(...skipping 19 matching lines...) Expand all
40 return access.createMediaKeys(); 39 return access.createMediaKeys();
41 }).then(function(mediaKeys) { 40 }).then(function(mediaKeys) {
42 mediaKeySession = mediaKeys.createSession(); 41 mediaKeySession = mediaKeys.createSession();
43 waitForEventAndRunStep('message', mediaKeySession, processMe ssage, test); 42 waitForEventAndRunStep('message', mediaKeySession, processMe ssage, test);
44 return mediaKeySession.generateRequest(initDataType, initDat a); 43 return mediaKeySession.generateRequest(initDataType, initDat a);
45 }); 44 });
46 }, 'Clear Key update() with non-ASCII response.'); 45 }, 'Clear Key update() with non-ASCII response.');
47 </script> 46 </script>
48 </body> 47 </body>
49 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698