mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision 4bba821de44da9ed47c2562f995a0da6eecc177b
This commit is contained in:
parent
af637640ae
commit
c8c377df9f
48 changed files with 697 additions and 8688 deletions
|
@ -17,11 +17,6 @@ and ensures that an empty string sent by one is received by the second.
|
|||
<!-- 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 send empty strings across a WebRTC data channel.');
|
||||
|
||||
|
|
|
@ -17,12 +17,6 @@ This test uses the legacy callback API with no media, and thus does not require
|
|||
<!-- 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.');
|
||||
|
||||
|
|
|
@ -17,11 +17,6 @@ This test uses data only, and thus does not require fake media devices.
|
|||
<!-- 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.');
|
||||
|
||||
|
|
|
@ -14,32 +14,33 @@
|
|||
<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;
|
||||
|
@ -54,6 +55,11 @@ partial interface RTCPeerConnection {
|
|||
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 {
|
||||
|
@ -70,21 +76,18 @@ partial interface RTCPeerConnection {
|
|||
};
|
||||
|
||||
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>
|
||||
|
|
|
@ -24,10 +24,7 @@ instance --use-fake-device-for-media-stream for Chrome.
|
|||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue