Update web-platform-tests to revision 615bb572c95add74ca4fb9fed4af5269a49cf4ef

This commit is contained in:
WPT Sync Bot 2018-11-06 20:34:54 -05:00
parent b628b6ef8e
commit 0aa76d7524
162 changed files with 2069 additions and 636 deletions

View file

@ -9,3 +9,4 @@ suggested_reviewers:
- phoglund
- youennf
- rwaldron
- jan-ivar

View file

@ -58,7 +58,7 @@
assert_true(dtlsTransport instanceof RTCDtlsTransport,
'Expect sctp.transport to be an RTCDtlsTransport');
const iceTransport = dtlsTransport.transport;
const iceTransport = dtlsTransport.iceTransport;
assert_true(iceTransport instanceof RTCIceTransport,
'Expect dtlsTransport.transport to be an RTCIceTransport');

View file

@ -34,7 +34,7 @@
5.5. RTCDtlsTransport Interface
interface RTCDtlsTransport {
readonly attribute RTCIceTransport transport;
readonly attribute RTCIceTransport iceTransport;
readonly attribute RTCDtlsTransportState state;
...
};
@ -121,7 +121,7 @@
assert_equals(dtlsTransport.state, 'connected',
'Expect DTLS transport to be in connected state');
const iceTransport = dtlsTransport.transport
const iceTransport = dtlsTransport.iceTransport
assert_true(iceTransport.state === 'connected' ||
iceTransport.state === 'completed',
'Expect ICE transport to be in connected or completed state');

View file

@ -115,9 +115,12 @@
'Second ontrack\'s stream ID matches local stream.');
assert_array_equals(firstTrackEvent.streams, secondTrackEvent.streams,
'ontrack was fired with the same streams both times.');
assert_array_equals(firstTrackEvent.streams[0].getTracks(),
[firstTrackEvent.track, secondTrackEvent.track],
'The remote stream == [first track, second track].');
assert_equals(firstTrackEvent.streams[0].getTracks().length, 2, "stream should have two tracks");
assert_true(firstTrackEvent.streams[0].getTracks().includes(firstTrackEvent.track), "remoteStream should have the first track");
assert_true(firstTrackEvent.streams[0].getTracks().includes(secondTrackEvent.track), "remoteStream should have the second track");
assert_equals(ontrackEventsFired, 2, 'Unexpected number of track events.');
assert_equals(ontrackEventsFired, 2, 'Unexpected number of track events.');
}, 'addTrack() with two tracks and one stream makes ontrack fire twice with the tracks and shared stream.');

View file

@ -67,7 +67,9 @@ function asyncInitTransports() {
'Expect sctpTransport.transport to be instance of RTCDtlsTransport');
idlTestObjects.dtlsTransport = dtlsTransport;
const iceTransport = dtlsTransport.transport;
const iceTransport = dtlsTransport.iceTransport;
assert_true(iceTransport instanceof RTCIceTransport,
'Expect sctpTransport.transport to be instance of RTCDtlsTransport');
idlTestObjects.iceTransport = iceTransport;
});
}

View file

@ -101,9 +101,9 @@
var onRemoteTrack = test.step_func(function(event) {
var videoTag = document.getElementById('remote-view');
if (!videoTag.srcObject) {
videoTag.srcObject = event.streams[0];
}
if (!videoTag.srcObject)
videoTag.srcObject = new MediaStream();
videoTag.srcObject.addTrack(event.track);
});
// Returns a suitable error callback.