OLD | NEW |
1 Tests RTCPeerConnection createOffer. | 1 Tests RTCPeerConnection createOffer. |
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 requestSucceeded was called. | 6 PASS testExecutionOrderClosedConnection() did not throw exception. |
| 7 PASS pc.createOffer(createOfferSucceeded1, unexpectedCallback, {voiceActivityDet
ection:true, iceRestart:true}); did not throw exception. |
| 8 PASS error.name is "InvalidStateError" |
| 9 PASS error.toString() is "InvalidStateError: The RTCPeerConnection's signalingSt
ate is 'closed'." |
| 10 PASS events is [1,2,3] |
| 11 PASS createOfferSucceeded1 was called. |
7 PASS sessionDescription.type is "offer" | 12 PASS sessionDescription.type is "offer" |
8 PASS requestFailed was called. | 13 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed1); did not thr
ow exception. |
| 14 PASS expectedCreateOfferFailed1 was called. |
9 PASS error.name is "OperationError" | 15 PASS error.name is "OperationError" |
10 PASS error.toString() is "OperationError: TEST_ERROR" | 16 PASS error.toString() is "OperationError: TEST_ERROR" |
11 PASS pc.createOffer(dummy, dummy); did not throw exception. | 17 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed2); did not thr
ow exception. |
12 PASS pc.createOffer(dummy, dummy, {}); did not throw exception. | 18 PASS expectedCreateOfferFailed2 was called. |
13 PASS pc.createOffer(dummy, dummy, {voiceActivityDetection:false}); did not throw
exception. | 19 PASS error.name is "OperationError" |
14 PASS pc.createOffer(dummy, dummy, {iceRestart:true}); did not throw exception. | 20 PASS error.toString() is "OperationError: TEST_ERROR" |
15 PASS pc.createOffer(dummy, dummy, {voiceActivityDetection:false, iceRestart:true
}); did not throw exception. | 21 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed3, {}); did not
throw exception. |
16 PASS pc.createOffer(dummy, dummy, {offerToReceiveVideo:-1, offerToReceiveAudio:0
}); threw exception TypeError: Failed to execute 'createOffer' on 'RTCPeerConnec
tion': Invalid offerToReceiveVideo. | 22 PASS expectedCreateOfferFailed3 was called. |
17 PASS pc.createOffer(dummy, dummy, {offerToReceiveVideo:0, offerToReceiveAudio:-1
}); threw exception TypeError: Failed to execute 'createOffer' on 'RTCPeerConnec
tion': Invalid offerToReceiveAudio. | 23 PASS error.name is "OperationError" |
18 PASS pc.createOffer(dummy, dummy, {offerToReceiveVideo:1, offerToReceiveAudio:0,
voiceActivityDetection:false, iceRestart:true}); did not throw exception. | 24 PASS error.toString() is "OperationError: TEST_ERROR" |
| 25 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed4, {voiceActivi
tyDetection:false}); did not throw exception. |
| 26 PASS expectedCreateOfferFailed4 was called. |
| 27 PASS error.name is "OperationError" |
| 28 PASS error.toString() is "OperationError: TEST_ERROR" |
| 29 PASS pc.createOffer(createOfferSucceeded2, unexpectedCallback, {iceRestart:true}
); did not throw exception. |
| 30 PASS createOfferSucceeded2 was called. |
| 31 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed5, {offerToRece
iveVideo:1, offerToReceiveAudio:0, voiceActivityDetection:false, iceRestart:true
}); did not throw exception. |
| 32 PASS expectedCreateOfferFailed5 was called. |
| 33 PASS error.name is "OperationError" |
| 34 PASS error.toString() is "OperationError: TEST_ERROR" |
| 35 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed6, {offerToRece
iveVideo:-1, offerToReceiveAudio:0}); did not throw exception. |
| 36 PASS expectedCreateOfferFailed6 called. |
| 37 PASS error.name is "OperationError" |
| 38 PASS error.toString() is "OperationError: TEST_ERROR" |
| 39 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed7, {offerToRece
iveVideo:0, offerToReceiveAudio:-1}); did not throw exception. |
| 40 PASS expectedCreateOfferFailed7 called. |
| 41 PASS error.name is "OperationError" |
| 42 PASS error.toString() is "OperationError: TEST_ERROR" |
19 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
20 | 44 |
21 TEST COMPLETE | 45 TEST COMPLETE |
22 | 46 |
OLD | NEW |