4 https://bugzilla.mozilla.org/show_bug.cgi?id=923010
8 <title>Test for Bug
923010</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
12 /** Test for Bug
923010 **/
14 var conn = new RTCPeerConnection();
16 var candidate = new RTCIceCandidate({candidate:
"x" });
17 conn.addIceCandidate(candidate)
19 ok(false,
"addIceCandidate succeeded when it should have failed");
21 is(reason.lineNumber,
17,
"Rejection should have been on line 17");
23 "Invalid candidate (both sdpMid and sdpMLineIndex are null).",
24 "Should have the rejection we expect");
26 .catch(function(reason) {
27 ok(false,
"unexpected error: " + reason);
30 // b2g has no WebRTC, apparently
31 todo(false,
"No WebRTC on b2g yet");
36 conn.setIdentityProvider(
"example.com", { protocol:
"foo" });
37 ok(false,
"That call to setIdentityProvider should have thrown");
39 is(e.lineNumber,
36,
"Exception should have been on line 36");
41 "Peer connection is closed",
42 "Should have the exception we expect");
48 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=923010">Mozilla Bug
923010</a>
50 <div id=
"content" style=
"display: none">