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>IDL check of RTCPeerConnection</title> | 5 <title>IDL check of RTCPeerConnection</title> |
6 <link rel="author" title="Harald Alvestrand" href="mailto:hta@google.com"/> | 6 <link rel="author" title="Harald Alvestrand" href="mailto:hta@google.com"/> |
7 <link rel="help" href="http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interfa
ce"> | 7 <link rel="help" href="http://w3c.github.io/webrtc-pc/#rtcpeerconnection-interfa
ce"> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 | 10 |
11 <h1 class="instructions" style="display:none">Description</h1> | 11 <h1 class="instructions">Description</h1> |
12 <p class="instructions" style="display:none">This test verifies the availability
of the RTCPeerConnection interface.</p> | 12 <p class="instructions">This test verifies the availability of the RTCPeerConnec
tion interface.</p> |
13 <div id='log'></div> | 13 <div id='log'></div> |
14 <script src=/resources/testharness.js></script> | 14 <script src=/resources/testharness.js></script> |
15 <script src=/resources/testharnessreport.js></script> | 15 <script src=/resources/testharnessreport.js></script> |
16 <script src=/resources/WebIDLParser.js></script> | 16 <script src=/resources/WebIDLParser.js></script> |
17 <script src=/resources/idlharness.js></script> | 17 <script src=/resources/idlharness.js></script> |
18 | 18 |
19 <!-- The IDL is copied from the 22 September 2015 editors' draft. --> | 19 <!-- The IDL is copied from the 22 September 2015 editors' draft. --> |
20 <script type="text/plain"> | 20 <script type="text/plain"> |
21 interface EventTarget { | 21 interface EventTarget { |
22 // Only a dummy definition is needed here. | 22 // Only a dummy definition is needed here. |
23 }; | 23 }; |
24 [ Constructor (optional RTCConfiguration configuration)] | 24 [ Constructor (optional RTCConfiguration configuration)] |
25 interface RTCPeerConnection : EventTarget { | 25 interface RTCPeerConnection : EventTarget { |
26 Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options
); | 26 Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options
); |
27 Promise<RTCSessionDescription> createAnswer (optional RTCAnswerOptions optio
ns); | 27 Promise<RTCSessionDescription> createAnswer (optional RTCAnswerOptions optio
ns); |
28 Promise<void> setLocalDescription (RTCSessionDescription de
scription); | 28 Promise<void> setLocalDescription (RTCSessionDescription de
scription); |
29 readonly attribute RTCSessionDescription? localDescription; | 29 readonly attribute RTCSessionDescription? localDescription; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 idl_array.add_idls(node.textContent); | 98 idl_array.add_idls(node.textContent); |
99 }); | 99 }); |
100 window.pc = new RTCPeerConnection(null); | 100 window.pc = new RTCPeerConnection(null); |
101 idl_array.add_objects({"RTCPeerConnection": ["pc"]}); | 101 idl_array.add_objects({"RTCPeerConnection": ["pc"]}); |
102 idl_array.test(); | 102 idl_array.test(); |
103 done(); | 103 done(); |
104 })(); | 104 })(); |
105 </script> | 105 </script> |
106 </body> | 106 </body> |
107 </html> | 107 </html> |
OLD | NEW |