| 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 <script> |
| 16 "use strict" |
| 17 var media = document.getElementById("media"); |
| 18 var idl_array = new IdlArray(); |
| 19 function doTest(idl) { |
| 20 idl_array.add_idls(idl); |
| 21 idl_array.add_objects({ |
| 22 HTMLVideoElement: [media], |
| 23 RemotePlayback: [media.remote] |
| 24 }); |
| 25 idl_array.test(); |
| 26 } |
| 27 |
| 28 promise_test(function() { |
| 29 return fetch("/interfaces/remoteplayback.idl") |
| 30 .then(response => response.text()) |
| 31 .then(doTest); |
| 32 }, "Test driver"); |
| 33 </script> |
| 34 <div id="log"></div> |
| 35 </body> |
| 36 </html> |
| OLD | NEW |