1 Test adding and removing tracks.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS stream1.getAudioTracks().length is 1
7 PASS stream1.getVideoTracks().length is 1
8 PASS stream1.getTracks().length is 2
9 PASS stream2.getAudioTracks().length is 1
10 PASS stream2.getVideoTracks().length is 1
11 PASS stream2.getTracks().length is 2
12 PASS stream1.getAudioTracks().length is 0
13 PASS stream1.getTracks().length is 1
14 PASS stream1.getTrackById(audioTrack.id) is null
15 PASS stream1.getTrackById(audioTrack.id) is non-null.
16 PASS audioTrack is stream1.getAudioTracks()[0]
17 PASS stream1.getVideoTracks().length is 0
18 PASS stream1.getTracks().length is 1
19 PASS stream1.getTrackById(videoTrack.id) is null
20 PASS stream1.getAudioTracks().length is 1
21 PASS stream1.getVideoTracks().length is 1
22 PASS stream1.getTracks().length is 2
23 PASS stream1.getAudioTracks()[0].kind is audioTrack.kind
24 PASS stream1.getAudioTracks()[0].label is audioTrack.label
25 PASS stream1.getVideoTracks()[0].kind is videoTrack.kind
26 PASS stream1.getVideoTracks()[0].label is videoTrack.label
27 PASS stream1.getAudioTracks().length is 1
28 PASS stream1.getVideoTracks().length is 1
29 PASS stream1.getTracks().length is 2
30 PASS stream1.getAudioTracks().length is 2
31 PASS stream1.getVideoTracks().length is 2
32 PASS stream1.getTracks().length is 4
33 PASS stream2.active is false
34 PASS stream1.active is false
36 PASS stream1.active is true
37 PASS Stream1 inactive.
38 PASS stream1.active is false
39 PASS successfullyParsed is true