| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"> |
| 5 <title>Remote Playback API IDL tests</title> |
| 6 <link rel="help" href="https://w3c.github.io/remoteplayback/"/> |
| 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src="/resources/WebIDLParser.js"></script> |
| 10 <script src="/resources/idlharness.js"></script> |
| 11 </head> |
| 12 <body> |
| 13 <h1>Remote Playback API IDL tests</h1> |
| 14 <video id='media' width=10 height=10></video> |
| 15 <pre id='untested_idl' style='display:none'> |
| 16 interface EventHandler {}; |
| 17 interface HTMLMediaElement : HTMLElement {}; |
| 18 interface EventTarget {}; |
| 19 </pre> |
| 20 <script> |
| 21 "use strict" |
| 22 var idl_array = new IdlArray(); |
| 23 function doTest(idl) { |
| 24 idl_array.add_untested_idls(document.getElementById("untested_idl").textConten
t); |
| 25 idl_array.add_idls(idl); |
| 26 idl_array.add_objects({ |
| 27 HTMLVideoElement: [document.getElementById("media")], |
| 28 RemotePlayback: [document.getElementById("media").remote] |
| 29 }); |
| 30 idl_array.test(); |
| 31 } |
| 32 |
| 33 promise_test(function() { |
| 34 return fetch("/interfaces/remoteplayback.idl") |
| 35 .then(response => response.text()) |
| 36 .then(doTest); |
| 37 }, "Test driver"); |
| 38 </script> |
| 39 <div id="log"></div> |
| 40 </body> |
| 41 </html> |
| OLD | NEW |