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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html

Issue 2414983002: EME: Fail if unsupported sessionTypes are provided (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « media/blink/key_system_config_selector.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test navigator.requestMediaKeySystemAccess()</title> 4 <title>Test navigator.requestMediaKeySystemAccess()</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 <script> 10 <script>
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 videoCapabilities: [{contentType: 'video/webm; codecs=",vp8"'}], 305 videoCapabilities: [{contentType: 'video/webm; codecs=",vp8"'}],
306 }], 'NotSupportedError', 'Leading , in codecs'); 306 }], 'NotSupportedError', 'Leading , in codecs');
307 307
308 expect_error('org.w3.clearkey', [{ 308 expect_error('org.w3.clearkey', [{
309 videoCapabilities: [{contentType: 'video/webm; codecs="vp8,"'}], 309 videoCapabilities: [{contentType: 'video/webm; codecs="vp8,"'}],
310 }], 'NotSupportedError', 'Trailing , in codecs'); 310 }], 'NotSupportedError', 'Trailing , in codecs');
311 311
312 expect_error('org.w3.clearkey', [{ 312 expect_error('org.w3.clearkey', [{
313 videoCapabilities: [{contentType: 'video/webm; codecs=",vp8,"'}] , 313 videoCapabilities: [{contentType: 'video/webm; codecs=",vp8,"'}] ,
314 }], 'NotSupportedError', 'Leading and trailing , in codecs'); 314 }], 'NotSupportedError', 'Leading and trailing , in codecs');
315
316 // Verify 'temporary' sessionType.
317 expect_config('org.w3.clearkey', [{
318 sessionTypes: [ 'temporary' ]
319 }], {
320 sessionTypes: [ 'temporary' ]
321 }, 'temporary sessionType');
322
323 // Clear Key doesn't support persistent sessions.
324 expect_error('org.w3.clearkey', [{
325 sessionTypes: [ 'persistent-license' ]
326 }], 'NotSupportedError', 'persistent-license sessionType');
327
328 // Verify invalid sessionTypes.
329 expect_error('org.w3.clearkey', [{
330 sessionTypes: [ 'foo' ]
331 }], 'NotSupportedError', 'invalid sessionType');
315 </script> 332 </script>
316 </body> 333 </body>
317 </html> 334 </html>
OLDNEW
« no previous file with comments | « media/blink/key_system_config_selector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698