OLD | NEW |
1 Tests MediaStream constructor. | 1 Tests MediaStream constructor. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Interface tests. | 6 Interface tests. |
7 PASS typeof MediaStream is 'function' | 7 PASS typeof MediaStream is 'function' |
8 PASS MediaStream.length is 0 | 8 PASS MediaStream.length is 0 |
9 PASS MediaStream.name is 'MediaStream' | 9 PASS MediaStream.name is 'MediaStream' |
10 PASS Object.getPrototypeOf(MediaStream.prototype) is EventTarget.prototype | 10 PASS Object.getPrototypeOf(MediaStream.prototype) is EventTarget.prototype |
11 PASS window.MediaStream is window.webkitMediaStream | 11 PASS window.MediaStream is window.webkitMediaStream |
12 Got local stream. | 12 Got local stream. |
13 PASS localStream.getAudioTracks().length is 1 | 13 PASS localStream.getAudioTracks().length is 1 |
14 PASS localStream.getVideoTracks().length is 1 | 14 PASS localStream.getVideoTracks().length is 1 |
15 PASS checkIdAttribute(localStream.id) is true | 15 PASS checkIdAttribute(localStream.id) is true |
16 PASS new MediaStream(document) threw exception TypeError: Failed to construct 'M
ediaStream': No matching constructor signature.. | 16 PASS new MediaStream(document) threw exception TypeError: Failed to construct 'M
ediaStream': No matching constructor signature.. |
17 PASS new MediaStream([document]) threw exception TypeError: Failed to construct
'MediaStream': Invalid Array element type. | 17 PASS new MediaStream([document]) threw exception TypeError: Failed to construct
'MediaStream': Failed to convert value to 'MediaStreamTrack'.. |
18 PASS new MediaStream([stream.getAudioTracks()[0], document]) threw exception Typ
eError: Failed to construct 'MediaStream': Invalid Array element type. | 18 PASS new MediaStream([stream.getAudioTracks()[0], document]) threw exception Typ
eError: Failed to construct 'MediaStream': Failed to convert value to 'MediaStre
amTrack'.. |
19 PASS new MediaStream([null]) threw exception TypeError: Failed to construct 'Med
iaStream': Invalid Array element type. | 19 PASS new MediaStream([null]) threw exception TypeError: Failed to construct 'Med
iaStream': Failed to convert value to 'MediaStreamTrack'.. |
20 PASS new MediaStream([undefined]) threw exception TypeError: Failed to construct
'MediaStream': Invalid Array element type. | 20 PASS new MediaStream([undefined]) threw exception TypeError: Failed to construct
'MediaStream': Failed to convert value to 'MediaStreamTrack'.. |
21 PASS new MediaStream(null) threw exception TypeError: Failed to construct 'Media
Stream': No matching constructor signature.. | 21 PASS new MediaStream(null) threw exception TypeError: Failed to construct 'Media
Stream': No matching constructor signature.. |
22 PASS new MediaStream(undefined) threw exception TypeError: Failed to construct '
MediaStream': No matching constructor signature.. | 22 PASS new MediaStream(undefined) threw exception TypeError: Failed to construct '
MediaStream': No matching constructor signature.. |
23 Stream constructed | 23 Stream constructed |
24 PASS [object MediaStream] is non-null. | 24 PASS [object MediaStream] is non-null. |
25 PASS [object MediaStream] is defined. | 25 PASS [object MediaStream] is defined. |
26 PASS newStream.constructor.name is 'MediaStream' | 26 PASS newStream.constructor.name is 'MediaStream' |
27 PASS newStream.getAudioTracks().length is nAudio | 27 PASS newStream.getAudioTracks().length is nAudio |
28 PASS newStream.getVideoTracks().length is nVideo | 28 PASS newStream.getVideoTracks().length is nVideo |
29 PASS newStream.active is false | 29 PASS newStream.active is false |
30 PASS checkIdAttribute(newStream.id) is true | 30 PASS checkIdAttribute(newStream.id) is true |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 PASS [object MediaStream] is defined. | 105 PASS [object MediaStream] is defined. |
106 PASS newStream.constructor.name is 'MediaStream' | 106 PASS newStream.constructor.name is 'MediaStream' |
107 PASS newStream.getAudioTracks().length is nAudio | 107 PASS newStream.getAudioTracks().length is nAudio |
108 PASS newStream.getVideoTracks().length is nVideo | 108 PASS newStream.getVideoTracks().length is nVideo |
109 PASS newStream.active is false | 109 PASS newStream.active is false |
110 PASS checkIdAttribute(newStream.id) is true | 110 PASS checkIdAttribute(newStream.id) is true |
111 PASS successfullyParsed is true | 111 PASS successfullyParsed is true |
112 | 112 |
113 TEST COMPLETE | 113 TEST COMPLETE |
114 | 114 |
OLD | NEW |