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

Side by Side Diff: LayoutTests/imported/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl.html

Issue 1213063003: update-w3c-deps import using blink 3b531d5bb326db09a7298b222030cf274590473d: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add rtcpeerconnection-idl-expected.txt Created 5 years, 5 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset=utf-8>
5 <title>IDL check of RTCPeerConnection</title>
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">
8 <link rel='stylesheet' href='../../../../resources/testharness.css' media='all'/ >
9 </head>
10 <body>
11
12 <h1 class="instructions" style="display:none">Description</h1>
13 <p class="instructions" style="display:none">This test verifies the availability of the RTCPeerConnection interface.</p>
14 <div id='log'></div>
15 <script src=../../../../resources/testharness.js></script>
16 <script src=../../../../resources/testharnessreport.js></script>
17 <script src="../../../../resources/vendor-prefix.js"
18 data-prefixed-objects=
19 '[{"ancestors":["window"], "name":"RTCPeerConnection"},
20 {"ancestors":["window"], "name":"RTCSessionDescription"},
21 {"ancestors":["window"], "name":"RTCIceCandidate"}]'>
22 </script>
23 <script src=../../../../resources/WebIDLParser.js></script>
24 <script src=../../../../resources/idlharness.js></script>
25
26 <!-- The IDL is copied from the 06 March 2015 editors' draft. -->
27 <script type="text/plain">
28 [ Constructor (RTCConfiguration configuration)]
29 interface RTCPeerConnection : EventTarget {
30 Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options );
31 Promise<RTCSessionDescription> createAnswer ();
32 Promise<void> setLocalDescription (RTCSessionDescription de scription);
33 readonly attribute RTCSessionDescription? localDescription;
34 Promise<void> setRemoteDescription (RTCSessionDescription d escription);
35 readonly attribute RTCSessionDescription? remoteDescription;
36 readonly attribute RTCSignalingState signalingState;
37 void updateIce (RTCConfiguration configuration);
38 Promise<void> addIceCandidate (RTCIceCandidate candidate);
39 readonly attribute RTCIceGatheringState iceGatheringState;
40 readonly attribute RTCIceConnectionState iceConnectionState;
41 readonly attribute boolean? canTrickleIceCandidates;
42 RTCConfiguration getConfiguration ();
43 void close ();
44 attribute EventHandler onnegotiationneeded;
45 attribute EventHandler onicecandidate;
46 attribute EventHandler onsignalingstatechange;
47 attribute EventHandler oniceconnectionstatechange;
48 attribute EventHandler onicegatheringstatechange;
49 };
50
51 partial interface RTCPeerConnection {
52 void createOffer (RTCSessionDescriptionCallback successCallback, RTCPeerConn ectionErrorCallback failureCallback, optional RTCOfferOptions options);
53 void setLocalDescription (RTCSessionDescription description, VoidFunction su ccessCallback, RTCPeerConnectionErrorCallback failureCallback);
54 void createAnswer (RTCSessionDescriptionCallback successCallback, RTCPeerCon nectionErrorCallback failureCallback);
55 void setRemoteDescription (RTCSessionDescription description, VoidFunction s uccessCallback, RTCPeerConnectionErrorCallback failureCallback);
56 void addIceCandidate (RTCIceCandidate candidate, VoidFunction successCallbac k, RTCPeerConnectionErrorCallback failureCallback);
57 };
58
59 partial interface RTCPeerConnection {
60 sequence<RTCRtpSender> getSenders ();
61 sequence<RTCRtpReceiver> getReceivers ();
62 RTCRtpSender addTrack (MediaStreamTrack track, MediaStream... st reams);
63 void removeTrack (RTCRtpSender sender);
64 attribute EventHandler ontrack;
65 };
66
67 partial interface RTCPeerConnection {
68 RTCDataChannel createDataChannel ([TreatNullAs=EmptyString] DOMString label, optional RTCDataChannelInit dataChannelDict);
69 attribute EventHandler ondatachannel;
70 };
71
72 partial interface RTCPeerConnection {
73 RTCDTMFSender createDTMFSender (MediaStreamTrack track);
74 };
75
76 partial interface RTCPeerConnection {
77 void getStats (MediaStreamTrack? selector, RTCStatsCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
78 };
79
80 partial interface RTCPeerConnection {
81 void setIdentityProvider (DOMString provider, optional DOMString protocol, o ptional DOMString username);
82 void getIdentityAssertion ();
83 readonly attribute RTCIdentityAssertion? peerIdentity;
84 attribute EventHandler onidentityresult;
85 attribute EventHandler onpeeridentity;
86 attribute EventHandler onidpassertionerror;
87 attribute EventHandler onidpvalidationerror;
88 };
89
90 </script>
91 <script>
92 (function() {
93 var idl_array = new IdlArray();
94 [].forEach.call(document.querySelectorAll("script[type=text\\/plain]"),
95 function(node) {
96 idl_array.add_idls(node.textContent);
97 });
98 window.pc = new RTCPeerConnection(null);
99 idl_array.add_objects({"RTCPeerConnection": ["pc"]});
100 idl_array.test();
101 done();
102 })();
103 </script>
104 </body>
105 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698