mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision 615bb572c95add74ca4fb9fed4af5269a49cf4ef
This commit is contained in:
parent
b628b6ef8e
commit
0aa76d7524
162 changed files with 2069 additions and 636 deletions
|
@ -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.');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue