Bug 1446880: updated exception test to new setIdentityProvider API. r=jib
MozReview-Commit-ID: 8gYEUiL1xvd
--- a/dom/bindings/test/test_exceptions_from_jsimplemented.html
+++ b/dom/bindings/test/test_exceptions_from_jsimplemented.html
@@ -28,17 +28,17 @@ https://bugzilla.mozilla.org/show_bug.cg
});
} catch (e) {
// b2g has no WebRTC, apparently
todo(false, "No WebRTC on b2g yet");
}
conn.close();
try {
- conn.setIdentityProvider("example.com", "foo");
+ conn.setIdentityProvider("example.com", { protocol: "foo" });
ok(false, "That call to setIdentityProvider should have thrown");
} catch (e) {
is(e.lineNumber, 36, "Exception should have been on line 36");
is(e.message,
"Peer connection is closed",
"Should have the exception we expect");
}