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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-update-disallowed-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 handling of invalid responses for update().</title> 4 <title>Test handling of invalid responses for update().</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 // 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 return access.createMediaKeys(); 59 return access.createMediaKeys();
61 }).then(function(mediaKeys) { 60 }).then(function(mediaKeys) {
62 mediaKeySession = mediaKeys.createSession(); 61 mediaKeySession = mediaKeys.createSession();
63 waitForEventAndRunStep('message', mediaKeySession, processMe ssage, test); 62 waitForEventAndRunStep('message', mediaKeySession, processMe ssage, test);
64 return mediaKeySession.generateRequest(initDataType, initDat a); 63 return mediaKeySession.generateRequest(initDataType, initDat a);
65 }); 64 });
66 }, 'update() with response longer than 64Kb characters.'); 65 }, 'update() with response longer than 64Kb characters.');
67 </script> 66 </script>
68 </body> 67 </body>
69 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698