| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>Media Capabilities IDL tests</title> | 5 <title>Media Capabilities IDL tests</title> |
| 6 <link rel="help" href="https://wicg.github.io/media-capabilities/"/> | 6 <link rel="help" href="https://wicg.github.io/media-capabilities/"/> |
| 7 <script src="/resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="/resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src="/resources/WebIDLParser.js"></script> | 9 <script src="/resources/WebIDLParser.js"></script> |
| 10 <script src="/resources/idlharness.js"></script> | 10 <script src="/resources/idlharness.js"></script> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 required double framerate; | 43 required double framerate; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 dictionary AudioConfiguration { | 46 dictionary AudioConfiguration { |
| 47 required DOMString contentType; | 47 required DOMString contentType; |
| 48 DOMString channels; | 48 DOMString channels; |
| 49 unsigned long bitrate; | 49 unsigned long bitrate; |
| 50 unsigned long samplerate; | 50 unsigned long samplerate; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 interface MediaDecodingAbility { | 53 interface MediaCapabilitiesInfo { |
| 54 readonly attribute boolean supported; | 54 readonly attribute boolean supported; |
| 55 readonly attribute boolean smooth; | 55 readonly attribute boolean smooth; |
| 56 readonly attribute boolean powerEfficient; | 56 readonly attribute boolean powerEfficient; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 [Exposed=(Window)] | 59 [Exposed=(Window)] |
| 60 partial interface Navigator { | 60 partial interface Navigator { |
| 61 [SameObject] readonly attribute MediaCapabilities mediaCapabilities; | 61 [SameObject] readonly attribute MediaCapabilities mediaCapabilities; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 [Exposed=(Worker)] | 64 [Exposed=(Worker)] |
| 65 partial interface WorkerNavigator { | 65 partial interface WorkerNavigator { |
| 66 [SameObject] readonly attribute MediaCapabilities mediaCapabilities; | 66 [SameObject] readonly attribute MediaCapabilities mediaCapabilities; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 [Exposed=(Window, Worker)] | 69 [Exposed=(Window, Worker)] |
| 70 interface MediaCapabilities { | 70 interface MediaCapabilities { |
| 71 Promise<MediaDecodingAbility> query(MediaConfiguration configuration); | 71 Promise<MediaCapabilitiesInfo> decodingInfo(MediaConfiguration configuration); |
| 72 }; | 72 }; |
| 73 </pre> | 73 </pre> |
| 74 <script> | 74 <script> |
| 75 var idl_array = new IdlArray(); | 75 var idl_array = new IdlArray(); |
| 76 idl_array.add_untested_idls(document.getElementById("untested_idl").textContent)
; | 76 idl_array.add_untested_idls(document.getElementById("untested_idl").textContent)
; |
| 77 idl_array.add_idls(document.getElementById("idl").textContent); | 77 idl_array.add_idls(document.getElementById("idl").textContent); |
| 78 idl_array.add_objects({ | 78 idl_array.add_objects({ |
| 79 Navigator: ["navigator"] | 79 Navigator: ["navigator"] |
| 80 }); | 80 }); |
| 81 idl_array.test(); | 81 idl_array.test(); |
| 82 </script> | 82 </script> |
| 83 <div id="log"></div> | 83 <div id="log"></div> |
| 84 </body> | 84 </body> |
| 85 </html> | 85 </html> |
| OLD | NEW |