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> | |
11 <script> | 10 <script> |
12 // Since promises catch any exception and convert it into a | 11 // Since promises catch any exception and convert it into a |
13 // rejected Promise, there is no current way to have the W3C | 12 // rejected Promise, there is no current way to have the W3C |
14 // test framework report a failed test. For now, simply force | 13 // test framework report a failed test. For now, simply force |
15 // a timeout to indicate failure. | 14 // a timeout to indicate failure. |
16 // FIXME: Once W3C test framework handles Promises, fix this. | 15 // FIXME: Once W3C test framework handles Promises, fix this. |
17 | 16 |
18 // This function checks that calling |testCase.func| returns a | 17 // This function checks that calling |testCase.func| returns a |
19 // rejected Promise with the error.name equal to | 18 // rejected Promise with the error.name equal to |
20 // |testCase.exception|. | 19 // |testCase.exception|. |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 }); | 1001 }); |
1003 }, 'Test MediaKeys setServerCertificate().'); | 1002 }, 'Test MediaKeys setServerCertificate().'); |
1004 | 1003 |
1005 | 1004 |
1006 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). | 1005 // FIXME: Add syntax checks for MediaKeys.IsTypeSupported(). |
1007 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev
ents. | 1006 // FIXME: Add syntax checks for MediaKeyError and MediaKeySession ev
ents. |
1008 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med
iakeys, onencrypted. | 1007 // FIXME: Add HTMLMediaElement syntax checks, e.g. setMediaKeys, med
iakeys, onencrypted. |
1009 </script> | 1008 </script> |
1010 </body> | 1009 </body> |
1011 </html> | 1010 </html> |
OLD | NEW |