Bug 981156 - iceConnectionState is not a callable function. r=jesup
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Thu, 13 Mar 2014 09:18:32 -0400
changeset 173374 8b13d02000f4d049127de79e959b9add338df38b
parent 173373 7a6be642b7291adc7af6498f2255198eb754e610
child 173375 ae03abb8673711010a37ad39b8a6a129ac976565
push id40985
push userryanvm@gmail.com
push dateThu, 13 Mar 2014 13:17:59 +0000
treeherdermozilla-inbound@5b84220fd962 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs981156
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 981156 - iceConnectionState is not a callable function. r=jesup
dom/media/tests/mochitest/templates.js
--- a/dom/media/tests/mochitest/templates.js
+++ b/dom/media/tests/mochitest/templates.js
@@ -142,53 +142,53 @@ var commandsPeerConnection = [
       var myTest = test;
       var myPc = myTest.pcLocal;
 
       function onIceConnectedSuccess () {
         ok(true, "pc_local: ICE switched to 'connected' state");
         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();
       };
 
       if (myPc.isIceConnected()) {
         ok(true, "pc_local: ICE is in connected state");
         myTest.next();
       } 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();
       }
     }
   ],
   [
     'PC_REMOTE_WAIT_FOR_ICE_CONNECTED',
     function (test) {
       var myTest = test;
       var myPc = myTest.pcRemote;
 
       function onIceConnectedSuccess () {
         ok(true, "pc_remote: ICE switched to 'connected' state");
         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();
       };
 
       if (myPc.isIceConnected()) {
         ok(true, "pc_remote: ICE is in connected state");
         myTest.next();
       } 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();
       }
     }
   ],
   [
     'PC_LOCAL_CHECK_MEDIA_STREAMS',
     function (test) {
       test.pcLocal.checkMediaStreams(test._remote_constraints);