Skip to content

Commit

Permalink
Updating webplatform-tests,
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson authored and jgraham committed Oct 12, 2015
1 parent bdf5b74 commit 2492941
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 40 deletions.
5 changes: 0 additions & 5 deletions webrtc/datachannel-emptystring.html
Expand Up @@ -17,11 +17,6 @@ <h2>Messages exchanged</h2>
<!-- These files are in place when executing on W3C. -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/vendor-prefix.js"
data-prefixed-objects=
'[{"ancestors":["window"], "name":"RTCPeerConnection"}]'

This comment has been minimized.

Copy link
@dontcallmedom

dontcallmedom Nov 2, 2015

Contributor

This makes the test suite no longer run in Chrome unfortunately.

>
</script>
<script type="text/javascript">
var test = async_test('Can send empty strings across a WebRTC data channel.');

Expand Down
6 changes: 0 additions & 6 deletions webrtc/no-media-call.html
Expand Up @@ -17,12 +17,6 @@ <h2>iceConnectionState info</h2>
<!-- These files are in place when executing on W3C. -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/vendor-prefix.js"
data-prefixed-objects=
'[{"ancestors":["window"], "name":"RTCPeerConnection"},
{"ancestors":["window"], "name":"RTCSessionDescription"}]'
>
</script>
<script type="text/javascript">
var test = async_test('Can set up a basic WebRTC call with no data.');

Expand Down
5 changes: 0 additions & 5 deletions webrtc/promises-call.html
Expand Up @@ -17,11 +17,6 @@ <h2>iceConnectionState info</h2>
<!-- These files are in place when executing on W3C. -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/vendor-prefix.js"
data-prefixed-objects=
'[{"ancestors":["window"], "name":"RTCPeerConnection"}]'
>
</script>
<script type="text/javascript">
var test = async_test('Can set up a basic WebRTC call with only data using promises.');

Expand Down
43 changes: 23 additions & 20 deletions webrtc/rtcpeerconnection/rtcpeerconnection-idl.html
Expand Up @@ -14,32 +14,33 @@ <h1 class="instructions">Description</h1>
<div id='log'></div>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/vendor-prefix.js"
data-prefixed-objects=
'[{"ancestors":["window"], "name":"RTCPeerConnection"},
{"ancestors":["window"], "name":"RTCSessionDescription"},
{"ancestors":["window"], "name":"RTCIceCandidate"}]'>
</script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>

<!-- The IDL is copied from the 06 March 2015 editors' draft. -->
<!-- The IDL is copied from the 22 September 2015 editors' draft. -->
<script type="text/plain">
[ Constructor (RTCConfiguration configuration)]
interface EventTarget {
// Only a dummy definition is needed here.
};
[ Constructor (optional RTCConfiguration configuration)]
interface RTCPeerConnection : EventTarget {
Promise<RTCSessionDescription> createOffer (optional RTCOfferOptions options);
Promise<RTCSessionDescription> createAnswer ();
Promise<RTCSessionDescription> createAnswer (optional RTCAnswerOptions options);
Promise<void> setLocalDescription (RTCSessionDescription description);
readonly attribute RTCSessionDescription? localDescription;
readonly attribute RTCSessionDescription? currentLocalDescription;
readonly attribute RTCSessionDescription? pendingLocalDescription;
Promise<void> setRemoteDescription (RTCSessionDescription description);
readonly attribute RTCSessionDescription? remoteDescription;
readonly attribute RTCSignalingState signalingState;
void updateIce (RTCConfiguration configuration);
readonly attribute RTCSessionDescription? currentRemoteDescription;
readonly attribute RTCSessionDescription? pendingRemoteDescription;
Promise<void> addIceCandidate (RTCIceCandidate candidate);
readonly attribute RTCSignalingState signalingState;
readonly attribute RTCIceGatheringState iceGatheringState;
readonly attribute RTCIceConnectionState iceConnectionState;
readonly attribute boolean? canTrickleIceCandidates;
RTCConfiguration getConfiguration ();
void setConfiguration (RTCConfiguration configuration);
void close ();
attribute EventHandler onnegotiationneeded;
attribute EventHandler onicecandidate;
Expand All @@ -54,6 +55,11 @@ <h1 class="instructions">Description</h1>
void createAnswer (RTCSessionDescriptionCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
void setRemoteDescription (RTCSessionDescription description, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback);
void addIceCandidate (RTCIceCandidate candidate, VoidFunction successCallback, RTCPeerConnectionErrorCallback failureCallback);
void getStats (MediaStreamTrack? selector, RTCStatsCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
};

partial interface RTCPeerConnection {
static Promise<RTCCertificate> generateCertificate (AlgorithmIdentifier keygenAlgorithm);
};

partial interface RTCPeerConnection {
Expand All @@ -70,21 +76,18 @@ <h1 class="instructions">Description</h1>
};

partial interface RTCPeerConnection {
RTCDTMFSender createDTMFSender (MediaStreamTrack track);
readonly attribute RTCDTMFSender? dtmf;
};

partial interface RTCPeerConnection {
void getStats (MediaStreamTrack? selector, RTCStatsCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
Promise<RTCStatsReport> getStats (optional MediaStreamTrack? selector);
};

partial interface RTCPeerConnection {
void setIdentityProvider (DOMString provider, optional DOMString protocol, optional DOMString username);
void getIdentityAssertion ();
readonly attribute RTCIdentityAssertion? peerIdentity;
attribute EventHandler onidentityresult;
attribute EventHandler onpeeridentity;
attribute EventHandler onidpassertionerror;
attribute EventHandler onidpvalidationerror;
void setIdentityProvider (DOMString provider, optional DOMString protocol, optional DOMString usernameHint);
Promise<DOMString> getIdentityAssertion ();
readonly attribute Promise<RTCIdentityAssertion> peerIdentity;
readonly attribute DOMString? idpLoginUrl;
};

</script>
Expand Down
5 changes: 1 addition & 4 deletions webrtc/simplecall.html
Expand Up @@ -24,10 +24,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/common/vendor-prefix.js"
data-prefixed-objects=
'[{"ancestors":["navigator"], "name":"getUserMedia"},
{"ancestors":["window"], "name":"RTCPeerConnection"},
{"ancestors":["window"], "name":"RTCSessionDescription"},
{"ancestors":["window"], "name":"RTCIceCandidate"}]'
'[{"ancestors":["navigator"], "name":"getUserMedia"}]'
data-prefixed-prototypes=
'[{"ancestors":["HTMLMediaElement"],"name":"srcObject"}]'>
</script>
Expand Down

0 comments on commit 2492941

Please sign in to comment.