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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 } | 497 } |
498 | 498 |
499 // FIXME: Update this set of tests when done | 499 // FIXME: Update this set of tests when done |
500 // implementing the latest spec. | 500 // implementing the latest spec. |
501 assert_equals(typeof mediaKeySession, 'object'); | 501 assert_equals(typeof mediaKeySession, 'object'); |
502 assert_equals(typeof mediaKeySession.addEventListener, 'function
'); | 502 assert_equals(typeof mediaKeySession.addEventListener, 'function
'); |
503 assert_equals(typeof mediaKeySession.generateRequest, 'function'
); | 503 assert_equals(typeof mediaKeySession.generateRequest, 'function'
); |
504 assert_equals(typeof mediaKeySession.update, 'function'); | 504 assert_equals(typeof mediaKeySession.update, 'function'); |
505 assert_equals(typeof mediaKeySession.close, 'function'); | 505 assert_equals(typeof mediaKeySession.close, 'function'); |
506 assert_equals(typeof mediaKeySession.remove, 'function'); | 506 assert_equals(typeof mediaKeySession.remove, 'function'); |
507 assert_equals(mediaKeySession.error, null); | |
508 assert_equals(mediaKeySession.sessionId, ''); | 507 assert_equals(mediaKeySession.sessionId, ''); |
509 assert_equals(typeof mediaKeySession.sessionId, 'string'); | 508 assert_equals(typeof mediaKeySession.sessionId, 'string'); |
510 assert_equals(typeof mediaKeySession.onopen, 'undefined'); | 509 assert_equals(typeof mediaKeySession.onopen, 'undefined'); |
511 assert_equals(typeof mediaKeySession.onmessage, 'undefined'); | 510 assert_equals(typeof mediaKeySession.onmessage, 'undefined'); |
512 assert_equals(typeof mediaKeySession.onclose, 'undefined'); | 511 assert_equals(typeof mediaKeySession.onclose, 'undefined'); |
513 assert_equals(typeof mediaKeySession.onerror, 'undefined'); | 512 assert_equals(typeof mediaKeySession.onerror, 'undefined'); |
514 } | 513 } |
515 | 514 |
516 async_test(function(test) | 515 async_test(function(test) |
517 { | 516 { |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 | 918 |
920 // FIXME: Add test for successful setServerCertificate(). Note that | 919 // FIXME: Add test for successful setServerCertificate(). Note that |
921 // ClearKey does not support it. | 920 // ClearKey does not support it. |
922 | 921 |
923 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). | 922 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). |
924 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev
ents. | 923 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev
ents. |
925 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med
iakeys, onencrypted. | 924 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med
iakeys, onencrypted. |
926 </script> | 925 </script> |
927 </body> | 926 </body> |
928 </html> | 927 </html> |
OLD | NEW |