OLD | NEW |
1 Tests RTCIceCandidate. | 1 Tests RTCIceCandidate. |
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 PASS candidate = new RTCIceCandidate(initializer); did not throw exception. | 6 PASS candidate = new RTCIceCandidate(initializer); did not throw exception. |
7 PASS candidate.candidate is "foo" | 7 PASS candidate.candidate is "foo" |
8 PASS candidate.sdpMid is "bar" | 8 PASS candidate.sdpMid is "bar" |
9 PASS candidate.sdpMLineIndex is 6 | 9 PASS candidate.sdpMLineIndex is 6 |
10 PASS initializer = JSON.parse(stringifyDOMObject(candidate)); did not throw exce
ption. | 10 PASS initializer = JSON.parse(JSON.stringify(candidate)); did not throw exceptio
n. |
11 PASS candidate = new RTCIceCandidate(initializer); did not throw exception. | 11 PASS candidate = new RTCIceCandidate(initializer); did not throw exception. |
12 PASS candidate.candidate is "foo" | 12 PASS candidate.candidate is "foo" |
13 PASS candidate.sdpMid is "bar" | 13 PASS candidate.sdpMid is "bar" |
14 PASS candidate.sdpMLineIndex is 6 | 14 PASS candidate.sdpMLineIndex is 6 |
15 PASS new RTCIceCandidate({}); threw exception TypeMismatchError: Failed to const
ruct 'RTCIceCandidate': The 'candidate' property is not a string, or is empty.. | 15 PASS new RTCIceCandidate({}); threw exception TypeMismatchError: Failed to const
ruct 'RTCIceCandidate': The 'candidate' property is not a string, or is empty.. |
16 PASS new RTCIceCandidate(5); threw exception TypeError: Failed to construct 'RTC
IceCandidate': parameter 1 ('candidateInitDict') is not an object.. | 16 PASS new RTCIceCandidate(5); threw exception TypeError: Failed to construct 'RTC
IceCandidate': parameter 1 ('candidateInitDict') is not an object.. |
17 PASS new RTCIceCandidate("foobar"); threw exception TypeError: Failed to constru
ct 'RTCIceCandidate': parameter 1 ('candidateInitDict') is not an object.. | 17 PASS new RTCIceCandidate("foobar"); threw exception TypeError: Failed to constru
ct 'RTCIceCandidate': parameter 1 ('candidateInitDict') is not an object.. |
18 PASS new RTCIceCandidate({candidate:""}); threw exception TypeMismatchError: Fai
led to construct 'RTCIceCandidate': The 'candidate' property is not a string, or
is empty.. | 18 PASS new RTCIceCandidate({candidate:""}); threw exception TypeMismatchError: Fai
led to construct 'RTCIceCandidate': The 'candidate' property is not a string, or
is empty.. |
19 PASS new RTCIceCandidate({candidate:"x"}); did not throw exception. | 19 PASS new RTCIceCandidate({candidate:"x"}); did not throw exception. |
20 PASS candidate.candidate is "bar" | 20 PASS candidate.candidate is "bar" |
21 PASS candidate.sdpMid is "foo" | 21 PASS candidate.sdpMid is "foo" |
22 PASS candidate.sdpMLineIndex is 0 | 22 PASS candidate.sdpMLineIndex is 0 |
23 PASS successfullyParsed is true | 23 PASS successfullyParsed is true |
24 | 24 |
25 TEST COMPLETE | 25 TEST COMPLETE |
26 | 26 |
OLD | NEW |