From b04f1c0bcf59ab16247767ba0788ba35bcd88725 Mon Sep 17 00:00:00 2001 From: "Nils Ohlmeier [:drno]" Date: Thu, 13 Mar 2014 09:18:32 -0400 Subject: [PATCH] Bug 981156 - iceConnectionState is not a callable function. r=jesup --- dom/media/tests/mochitest/templates.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dom/media/tests/mochitest/templates.js b/dom/media/tests/mochitest/templates.js index a2ca61fcc57c..9ce2087908fb 100644 --- a/dom/media/tests/mochitest/templates.js +++ b/dom/media/tests/mochitest/templates.js @@ -147,7 +147,7 @@ var commandsPeerConnection = [ myTest.next(); }; 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(); }; @@ -157,7 +157,7 @@ var commandsPeerConnection = [ } else if (myPc.isIceConnectionPending()) { myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed); } 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(); } } @@ -173,7 +173,7 @@ var commandsPeerConnection = [ myTest.next(); }; 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(); }; @@ -183,7 +183,7 @@ var commandsPeerConnection = [ } else if (myPc.isIceConnectionPending()) { myPc.waitForIceConnected(onIceConnectedSuccess, onIceConnectedFailed); } 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(); } }