mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 977944: dump mochitest log file in case of ICE failure r=bwc
This commit is contained in:
parent
57b6c948fe
commit
3272c65e39
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user