Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/media-capabilities/idlharness.html

Issue 2813133002: Media Capabilities: add MediaDecodingConfiguration.idl and update to Spec (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/media-capabilities/idlharness-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 </head> 11 </head>
12 <body> 12 <body>
13 <h1>Media Session IDL tests</h1> 13 <h1>Media Session IDL tests</h1>
14 <pre id='untested_idl' style='display:none'> 14 <pre id='untested_idl' style='display:none'>
15 [PrimaryGlobal] 15 [PrimaryGlobal]
16 interface Window { 16 interface Window {
17 }; 17 };
18 interface Worker { 18 interface Worker {
19 }; 19 };
20 interface Navigator { 20 interface Navigator {
21 }; 21 };
22 interface WorkerNavigator { 22 interface WorkerNavigator {
23 }; 23 };
24 </pre> 24 </pre>
25 <pre id='idl'> 25 <pre id='idl'>
26 dictionary MediaConfiguration { 26 dictionary MediaConfiguration {
27 required MediaConfigurationType type;
28
29 VideoConfiguration video; 27 VideoConfiguration video;
30 AudioConfiguration audio; 28 AudioConfiguration audio;
31 }; 29 };
32 30
33 enum MediaConfigurationType { 31 dictionary MediaDecodingConfiguration : MediaConfiguration {
32 required MediaDecodingType type;
33 };
34
35 dictionary MediaEncodingConfiguration : MediaConfiguration {
36 required MediaEncodingType type;
37 };
38
39 enum MediaDecodingType {
34 "file", 40 "file",
35 "media-source", 41 "media-source",
36 }; 42 };
37 43
38 dictionary VideoConfiguration { 44 dictionary VideoConfiguration {
39 required DOMString contentType; 45 required DOMString contentType;
40 required unsigned long width; 46 required unsigned long width;
41 required unsigned long height; 47 required unsigned long height;
42 required unsigned long bitrate; 48 required unsigned long bitrate;
43 required double framerate; 49 required double framerate;
(...skipping 17 matching lines...) Expand all
61 [SameObject] readonly attribute MediaCapabilities mediaCapabilities; 67 [SameObject] readonly attribute MediaCapabilities mediaCapabilities;
62 }; 68 };
63 69
64 [Exposed=(Worker)] 70 [Exposed=(Worker)]
65 partial interface WorkerNavigator { 71 partial interface WorkerNavigator {
66 [SameObject] readonly attribute MediaCapabilities mediaCapabilities; 72 [SameObject] readonly attribute MediaCapabilities mediaCapabilities;
67 }; 73 };
68 74
69 [Exposed=(Window, Worker)] 75 [Exposed=(Window, Worker)]
70 interface MediaCapabilities { 76 interface MediaCapabilities {
71 Promise<MediaCapabilitiesInfo> decodingInfo(MediaConfiguration configuration); 77 Promise<MediaCapabilitiesInfo> decodingInfo(MediaDecodingConfiguration configu ration);
78 Promise<MediaCapabilitiesInfo> encodingInfo(MediaEncodingConfiguration configu ration);
72 }; 79 };
73 </pre> 80 </pre>
74 <script> 81 <script>
75 var idl_array = new IdlArray(); 82 var idl_array = new IdlArray();
76 idl_array.add_untested_idls(document.getElementById("untested_idl").textContent) ; 83 idl_array.add_untested_idls(document.getElementById("untested_idl").textContent) ;
77 idl_array.add_idls(document.getElementById("idl").textContent); 84 idl_array.add_idls(document.getElementById("idl").textContent);
78 idl_array.add_objects({ 85 idl_array.add_objects({
79 Navigator: ["navigator"] 86 Navigator: ["navigator"]
80 }); 87 });
81 idl_array.test(); 88 idl_array.test();
82 </script> 89 </script>
83 <div id="log"></div> 90 <div id="log"></div>
84 </body> 91 </body>
85 </html> 92 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/media-capabilities/idlharness-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698