Bug 1033833 - unbreak test_exceptions_from_jsimplemented.html. r=bz
authorJan-Ivar Bruaroey <jib@mozilla.com>
Mon, 21 Jul 2014 06:53:15 +0200
changeset 217166 ca3ce71016b0c11bada64b68a6c5cb82b2c2be4d
parent 217165 2fd3b40213101d11eb3d0ef89346e0711b9b17bd
child 217167 632730473b5357f6fb4253461900b2e0de33d0da
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1033833
milestone33.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 1033833 - unbreak test_exceptions_from_jsimplemented.html. r=bz
dom/bindings/test/test_exceptions_from_jsimplemented.html
--- a/dom/bindings/test/test_exceptions_from_jsimplemented.html
+++ b/dom/bindings/test/test_exceptions_from_jsimplemented.html
@@ -7,27 +7,28 @@ https://bugzilla.mozilla.org/show_bug.cg
   <meta charset="utf-8">
   <title>Test for Bug 923010</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
   <script type="application/javascript">
   /** Test for Bug 923010 **/
   try {
     var conn = new mozRTCPeerConnection();
+    var candidate = new mozRTCIceCandidate({candidate: null });
     try {
-      conn.createAnswer(function() {
-          ok(false, "The call to createAnswer succeeded when it should have thrown");
+      conn.addIceCandidate(candidate, function() {
+          ok(false, "The call to addIceCandidate succeeded when it should have thrown");
         }, function() {
-          ok(false, "The call to createAnswer failed when it should have thrown");
-        }, { "mandatory": { "BOGUS": 5 } } )
-      ok(false, "That call to createAnswer should have thrown");
+          ok(false, "The call to addIceCandidate failed when it should have thrown");
+        })
+      ok(false, "That call to addIceCandidate should have thrown");
     } catch (e) {
-      is(e.lineNumber, 16, "Exception should have been on line 16");
+      is(e.lineNumber, 17, "Exception should have been on line 17");
       is(e.message,
-         "createAnswer passed invalid constraints - unknown mandatory constraint: BOGUS",
+         "Invalid candidate passed to addIceCandidate!",
          "Should have the exception we expect");
     }
   } catch (e) {
     // b2g has no WebRTC, apparently
     todo(false, "No WebRTC on b2g yet");
   }
   </script>
 </head>