зеркало из https://github.com/mozilla/gecko-dev.git
Bug 977944: dump mochitest log file in case of ICE failure r=bwc
This commit is contained in:
Родитель
90065efbdf
Коммит
bd98ba54f7
|
@ -147,8 +147,8 @@ var commandsPeerConnection = [
|
|||
myTest.next();
|
||||
};
|
||||
function onIceConnectedFailed () {
|
||||
info("pc_local: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
info("pc_local: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_local: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_local: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
ok(false, "pc_local: ICE failed to switch to 'connected' state: " + myPc.iceConnectionState);
|
||||
myTest.next();
|
||||
};
|
||||
|
@ -159,8 +159,8 @@ var commandsPeerConnection = [
|
|||
} else if (myPc.isIceConnectionPending()) {
|
||||
myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed);
|
||||
} else {
|
||||
info("pc_local: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
info("pc_local: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_local: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_local: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
ok(false, "pc_local: ICE is already in bad state: " + myPc.iceConnectionState);
|
||||
myTest.next();
|
||||
}
|
||||
|
@ -177,8 +177,8 @@ var commandsPeerConnection = [
|
|||
myTest.next();
|
||||
};
|
||||
function onIceConnectedFailed () {
|
||||
info("pc_remote: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
info("pc_remote: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_remote: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_remote: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
ok(false, "pc_remote: ICE failed to switch to 'connected' state: " + myPc.iceConnectionState);
|
||||
myTest.next();
|
||||
};
|
||||
|
@ -189,8 +189,8 @@ var commandsPeerConnection = [
|
|||
} else if (myPc.isIceConnectionPending()) {
|
||||
myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed);
|
||||
} else {
|
||||
info("pc_remote: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
info("pc_remote: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_remote: SDP offer: " + myTest._local_offer.sdp.replace(/[\r]/g, ''));
|
||||
dump("ERROR: pc_remote: SDP answer: " + myTest._remote_answer.sdp.replace(/[\r]/g, ''));
|
||||
ok(false, "pc_remote: ICE is already in bad state: " + myPc.iceConnectionState);
|
||||
myTest.next();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче