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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } | 468 } |
469 | 469 |
470 // FIXME: Update this set of tests when done | 470 // FIXME: Update this set of tests when done |
471 // implementing the latest spec. | 471 // implementing the latest spec. |
472 assert_equals(typeof mediaKeySession, 'object'); | 472 assert_equals(typeof mediaKeySession, 'object'); |
473 assert_equals(typeof mediaKeySession.addEventListener, 'function
'); | 473 assert_equals(typeof mediaKeySession.addEventListener, 'function
'); |
474 assert_equals(typeof mediaKeySession.generateRequest, 'function'
); | 474 assert_equals(typeof mediaKeySession.generateRequest, 'function'
); |
475 assert_equals(typeof mediaKeySession.update, 'function'); | 475 assert_equals(typeof mediaKeySession.update, 'function'); |
476 assert_equals(typeof mediaKeySession.close, 'function'); | 476 assert_equals(typeof mediaKeySession.close, 'function'); |
477 assert_equals(typeof mediaKeySession.remove, 'function'); | 477 assert_equals(typeof mediaKeySession.remove, 'function'); |
478 assert_equals(mediaKeySession.error, null); | |
479 assert_equals(mediaKeySession.sessionId, ''); | 478 assert_equals(mediaKeySession.sessionId, ''); |
480 assert_equals(typeof mediaKeySession.sessionId, 'string'); | 479 assert_equals(typeof mediaKeySession.sessionId, 'string'); |
481 assert_equals(typeof mediaKeySession.onopen, 'undefined'); | 480 assert_equals(typeof mediaKeySession.onopen, 'undefined'); |
482 assert_equals(typeof mediaKeySession.onmessage, 'undefined'); | 481 assert_equals(typeof mediaKeySession.onmessage, 'undefined'); |
483 assert_equals(typeof mediaKeySession.onclose, 'undefined'); | 482 assert_equals(typeof mediaKeySession.onclose, 'undefined'); |
484 assert_equals(typeof mediaKeySession.onerror, 'undefined'); | 483 assert_equals(typeof mediaKeySession.onerror, 'undefined'); |
485 } | 484 } |
486 | 485 |
487 async_test(function(test) | 486 async_test(function(test) |
488 { | 487 { |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 | 871 |
873 // FIXME: Add test for successful setServerCertificate(). Note that | 872 // FIXME: Add test for successful setServerCertificate(). Note that |
874 // ClearKey does not support it. | 873 // ClearKey does not support it. |
875 | 874 |
876 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). | 875 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). |
877 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev
ents. | 876 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev
ents. |
878 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med
iakeys, onencrypted. | 877 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med
iakeys, onencrypted. |
879 </script> | 878 </script> |
880 </body> | 879 </body> |
881 </html> | 880 </html> |
OLD | NEW |