Chromium Code Reviews| Index: content/test/data/media/peerconnection-call.html |
| diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html |
| index 6b51273f3e45b967f0497a7c9fb8269d60c078c4..f5222651ee820a4ed5e9a1b74d79c96df8c29877 100644 |
| --- a/content/test/data/media/peerconnection-call.html |
| +++ b/content/test/data/media/peerconnection-call.html |
| @@ -7,6 +7,10 @@ |
| return document.getElementById(id); |
| }; |
| + window.onerror = function() { |
|
phoglund_chromium
2014/10/27 17:28:17
This a good idea, but there is also a bunch of arg
|
| + failTest("Error on page."); |
| + } |
| + |
| var gFirstConnection = null; |
| var gSecondConnection = null; |
| var gTestWithoutMsid = false; |
| @@ -282,7 +286,6 @@ |
| waitForVideo('remote-view-2'); |
| } |
| - |
| // Test call with a data channel and later add audio and video. |
| function callWithDataAndLaterAddMedia() { |
| createConnections({optional:[{RtpDataChannels: true}]}); |
| @@ -628,7 +631,6 @@ |
| firstDataChannel.send(sendDataString); |
| } |
| - |
| // Event handler for when |gSecondConnection| receive a new dataChannel. |
| gSecondConnection.ondatachannel = function (event) { |
| var secondDataChannel = event.channel; |
| @@ -803,12 +805,16 @@ |
| var parsedOffer = new RTCSessionDescription({ type: 'offer', |
| sdp: offerSdp }); |
| - callee.setRemoteDescription(parsedOffer, function() {}, |
| + callee.setRemoteDescription(parsedOffer, |
| + function() { |
| + assertEquals('have-remote-offer', |
| + callee.signalingState); |
| + callee.createAnswer( |
| + function (answer) { |
| + onAnswerCreated(answer, caller, callee); |
| + }); |
| + }, |
| onRemoteDescriptionError); |
| - callee.createAnswer(function (answer) { |
| - onAnswerCreated(answer, caller, callee); |
| - }); |
| - assertEquals('have-remote-offer', callee.signalingState); |
| } |
| function removeMsid(offerSdp) { |