Bug 981156 - iceConnectionState is not a callable function. r=jesup

This commit is contained in:
Nils Ohlmeier [:drno] 2014-03-13 09:18:32 -04:00
Родитель dfd9d50b6c
Коммит b04f1c0bcf
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -147,7 +147,7 @@ var commandsPeerConnection = [
myTest.next(); myTest.next();
}; };
function onIceConnectedFailed () { function onIceConnectedFailed () {
ok(false, "pc_local: ICE failed to switch to 'connected' state: " + myPc.iceConnectionState()); ok(false, "pc_local: ICE failed to switch to 'connected' state: " + myPc.iceConnectionState);
myTest.next(); myTest.next();
}; };
@ -157,7 +157,7 @@ var commandsPeerConnection = [
} else if (myPc.isIceConnectionPending()) { } else if (myPc.isIceConnectionPending()) {
myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed); myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed);
} else { } else {
ok(false, "pc_local: ICE is already in bad state: " + myPc.iceConnectionState()); ok(false, "pc_local: ICE is already in bad state: " + myPc.iceConnectionState);
myTest.next(); myTest.next();
} }
} }
@ -173,7 +173,7 @@ var commandsPeerConnection = [
myTest.next(); myTest.next();
}; };
function onIceConnectedFailed () { function onIceConnectedFailed () {
ok(false, "pc_remote: ICE failed to switch to 'connected' state: " + myPc.iceConnectionState()); ok(false, "pc_remote: ICE failed to switch to 'connected' state: " + myPc.iceConnectionState);
myTest.next(); myTest.next();
}; };
@ -183,7 +183,7 @@ var commandsPeerConnection = [
} else if (myPc.isIceConnectionPending()) { } else if (myPc.isIceConnectionPending()) {
myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed); myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed);
} else { } else {
ok(false, "pc_remote: ICE is already in bad state: " + myPc.iceConnectionState()); ok(false, "pc_remote: ICE is already in bad state: " + myPc.iceConnectionState);
myTest.next(); myTest.next();
} }
} }