| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |