Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer-expected.txt

Issue 1713953002: Report errors in RTCPeerConnection legacy functions via the the failure callback instead of excepti… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix expected Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 is "The RTCPeerConnection's signalingState is 'closed'."
9 PASS events is [1,2,3]
10 PASS createOfferSucceeded1 was called.
7 PASS sessionDescription.type is "offer" 11 PASS sessionDescription.type is "offer"
8 PASS requestFailed was called. 12 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed1); did not thr ow exception.
9 PASS errorReason is "TEST_ERROR" 13 PASS expectedCreateOfferFailed1 was called.
10 PASS pc.createOffer(dummy, dummy); did not throw exception. 14 PASS error is "TEST_ERROR"
11 PASS pc.createOffer(dummy, dummy, {}); did not throw exception. 15 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed2); did not thr ow exception.
12 PASS pc.createOffer(dummy, dummy, {voiceActivityDetection:false}); did not throw exception. 16 PASS expectedCreateOfferFailed2 was called.
13 PASS pc.createOffer(dummy, dummy, {iceRestart:true}); did not throw exception. 17 PASS error is "TEST_ERROR"
14 PASS pc.createOffer(dummy, dummy, {voiceActivityDetection:false, iceRestart:true }); did not throw exception. 18 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed3, {}); did not throw exception.
15 PASS pc.createOffer(dummy, dummy, {offerToReceiveVideo:-1, offerToReceiveAudio:0 }); threw exception TypeError: Failed to execute 'createOffer' on 'RTCPeerConnec tion': Invalid offerToReceiveVideo. 19 PASS expectedCreateOfferFailed3 was called.
16 PASS pc.createOffer(dummy, dummy, {offerToReceiveVideo:0, offerToReceiveAudio:-1 }); threw exception TypeError: Failed to execute 'createOffer' on 'RTCPeerConnec tion': Invalid offerToReceiveAudio. 20 PASS error is "TEST_ERROR"
17 PASS pc.createOffer(dummy, dummy, {offerToReceiveVideo:1, offerToReceiveAudio:0, voiceActivityDetection:false, iceRestart:true}); did not throw exception. 21 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed4, {voiceActivi tyDetection:false}); did not throw exception.
22 PASS expectedCreateOfferFailed4 was called.
23 PASS error is "TEST_ERROR"
24 PASS pc.createOffer(createOfferSucceeded2, unexpectedCallback, {iceRestart:true} ); did not throw exception.
25 PASS createOfferSucceeded2 was called.
26 PASS pc.createOffer(unexpectedCallback, expectedCreateOfferFailed5, {offerToRece iveVideo:1, offerToReceiveAudio:0, voiceActivityDetection:false, iceRestart:true }); did not throw exception.
27 PASS expectedCreateOfferFailed5 was called.
28 PASS error is "TEST_ERROR"
29 PASS pc.createOffer(unexpectedCallback, expectedInvalidOfferToReceiveVideo, {off erToReceiveVideo:-1, offerToReceiveAudio:0}); did not throw exception.
30 PASS expectedInvalidOfferToReceiveVideo called.
31 PASS error is "Invalid offerToReceiveVideo"
32 PASS pc.createOffer(unexpectedCallback, expectedInvalidOfferToReceiveAudio, {off erToReceiveVideo:0, offerToReceiveAudio:-1}); did not throw exception.
33 PASS expectedInvalidOfferToReceiveVideo called.
34 PASS error is "Invalid offerToReceiveAudio"
18 PASS successfullyParsed is true 35 PASS successfullyParsed is true
19 36
20 TEST COMPLETE 37 TEST COMPLETE
21 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698