OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset=utf-8> |
| 5 <title>Encrypted Media Extentions IDL test</title> |
| 6 <link rel="help" href="https://w3c.github.io/encrypted-media/"> |
| 7 |
| 8 <script src=/resources/testharness.js></script> |
| 9 <script src=/resources/testharnessreport.js></script> |
| 10 <script src=/resources/WebIDLParser.js></script> |
| 11 <script src=/resources/idlharness.js></script> |
| 12 <script src=/encrypted-media/util/fetch.js></script> |
| 13 </head> |
| 14 <body> |
| 15 <h1 class="instructions">Description</h1> |
| 16 <p class="instructions"> |
| 17 This test verifies that implementations of the Encrypted Media Extensions
API match its WebIDL definition. |
| 18 </p> |
| 19 |
| 20 <div id='log'></div> |
| 21 |
| 22 <script> |
| 23 setup(function() { |
| 24 |
| 25 fetch( 'EncryptedMediaExtensions.idl') |
| 26 .then( function( response ) { |
| 27 if ( !response.ok ) throw new Error( 'IDL fetch failed' ); |
| 28 return response.text(); |
| 29 } ) |
| 30 .then( function( idls ) { |
| 31 |
| 32 var idl_array = new IdlArray(); |
| 33 idl_array.add_untested_idls("[PrimaryGlobal] interface Window {}
;"); |
| 34 idl_array.add_untested_idls("interface Navigator {};"); |
| 35 idl_array.add_untested_idls("interface ArrayBuffer {};"); |
| 36 idl_array.add_untested_idls("interface HTMLMediaElement {};"); |
| 37 idl_array.add_untested_idls("interface Event {};"); |
| 38 idl_array.add_untested_idls("interface EventTarget {};"); |
| 39 |
| 40 idl_array.add_idls(idls); |
| 41 |
| 42 idl_array.test(); |
| 43 |
| 44 done(); |
| 45 |
| 46 } ); |
| 47 |
| 48 }, {explicit_done: true}); |
| 49 </script> |
| 50 </body> |
| 51 </html> |
OLD | NEW |