Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
add_task(async function test_getUrlForUriEws() {
const service = Cc[
"@mozilla.org/messenger/messageservice;1?type=ews"
].createInstance(Ci.nsIMsgMessageService);
const ewsMessageUrl = service.getUrlForUri(
null
);
Assert.equal(ewsMessageUrl.scheme, "x-moz-ews", "ews-message -> x-moz-ews");
const xMozEwsUrl = service.getUrlForUri(
null
);
Assert.equal(xMozEwsUrl.scheme, "x-moz-ews", "x-moz-ews -> x-moz-ews");
});
add_task(async function test_getUrlForUriGraph() {
const service = Cc[
"@mozilla.org/messenger/messageservice;1?type=graph"
].createInstance(Ci.nsIMsgMessageService);
const graphMessageUrl = service.getUrlForUri(
null
);
Assert.equal(
graphMessageUrl.scheme,
"x-moz-graph",
"graph-message -> x-moz-graph"
);
const xMozGraphUrl = service.getUrlForUri(
null
);
Assert.equal(
xMozGraphUrl.scheme,
"x-moz-graph",
"x-moz-graph -> x-moz-graph"
);
});