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

Side by Side Diff: LayoutTests/media/encrypted-media/encrypted-media-syntax.html

Issue 1212603002: Fix encrypted-media-syntax.html layout test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « LayoutTests/TestExpectations ('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 EME syntax</title> 4 <title>Test EME syntax</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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 }, 66 },
67 { 67 {
68 exception: 'NotSupportedError', 68 exception: 'NotSupportedError',
69 func: function() { return navigator.requestMediaKeySystemAcc ess(undefined, [{}]); } 69 func: function() { return navigator.requestMediaKeySystemAcc ess(undefined, [{}]); }
70 }, 70 },
71 { 71 {
72 exception: 'NotSupportedError', 72 exception: 'NotSupportedError',
73 func: function() { return navigator.requestMediaKeySystemAcc ess(1, [{}]); } 73 func: function() { return navigator.requestMediaKeySystemAcc ess(1, [{}]); }
74 }, 74 },
75 { 75 {
76 exception: 'NotSupportedError', 76 exception: 'InvalidAccessError',
77 func: function() { return navigator.requestMediaKeySystemAcc ess(new Uint8Array(0), [{}]); } 77 func: function() { return navigator.requestMediaKeySystemAcc ess(new Uint8Array(0), [{}]); }
78 }, 78 },
79 { 79 {
80 exception: 'InvalidAccessError', 80 exception: 'InvalidAccessError',
81 func: function() { return navigator.requestMediaKeySystemAcc ess('', [{}]); } 81 func: function() { return navigator.requestMediaKeySystemAcc ess('', [{}]); }
82 }, 82 },
83 { 83 {
84 exception: 'NotSupportedError', 84 exception: 'NotSupportedError',
85 func: function() { return navigator.requestMediaKeySystemAcc ess('unsupported', [{}]); } 85 func: function() { return navigator.requestMediaKeySystemAcc ess('unsupported', [{}]); }
86 }, 86 },
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 }, 272 },
273 { 273 {
274 exception: 'NotSupportedError', 274 exception: 'NotSupportedError',
275 func: function(mk10, _, initData) { return mk10.createSessio n().generateRequest(undefined, initData); } 275 func: function(mk10, _, initData) { return mk10.createSessio n().generateRequest(undefined, initData); }
276 }, 276 },
277 { 277 {
278 exception: 'NotSupportedError', 278 exception: 'NotSupportedError',
279 func: function(mk11, _, initData) { return mk11.createSessio n().generateRequest(1, initData); } 279 func: function(mk11, _, initData) { return mk11.createSessio n().generateRequest(1, initData); }
280 }, 280 },
281 { 281 {
282 exception: 'NotSupportedError', 282 exception: 'InvalidAccessError',
283 func: function(mk12, _, initData) { return mk12.createSessio n().generateRequest(new Uint8Array(0), initData); } 283 func: function(mk12, _, initData) { return mk12.createSessio n().generateRequest(new Uint8Array(0), initData); }
284 }, 284 },
285 { 285 {
286 exception: 'NotSupportedError', 286 exception: 'NotSupportedError',
287 func: function(mk13, _, initData) { return mk13.createSessio n().generateRequest('unsupported', initData); } 287 func: function(mk13, _, initData) { return mk13.createSessio n().generateRequest('unsupported', initData); }
288 }, 288 },
289 { 289 {
290 exception: 'NotSupportedError', 290 exception: 'NotSupportedError',
291 func: function(mk14, _, initData) { return mk14.createSessio n().generateRequest('video/webm', initData); } 291 func: function(mk14, _, initData) { return mk14.createSessio n().generateRequest('video/webm', initData); }
292 }, 292 },
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 947
948 // FIXME: Add test for successful setServerCertificate(). Note that 948 // FIXME: Add test for successful setServerCertificate(). Note that
949 // Clear Key does not support it. 949 // Clear Key does not support it.
950 950
951 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). 951 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported().
952 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev ents. 952 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev ents.
953 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med iakeys, onencrypted. 953 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med iakeys, onencrypted.
954 </script> 954 </script>
955 </body> 955 </body>
956 </html> 956 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698