2
* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
function getBoundary_test() {
9
var got = getBoundary("content-type: application/pgp-encrypted;\n boundary='abc'; procol='any'\n");
10
Assert.equal(got, "abc", "get boundary 1");
11
got = getBoundary("content-type: application/pgp-encrypted; boundary='abc'; protocol='any'");
12
Assert.equal(got, "abc", "get boundary 2");
13
got = getBoundary('content-type: application/pgp-encrypted; boundary="abc"; protocol="any"');
14
Assert.equal(got, "abc", "get boundary 2");
19
// load mimeDecrypt.js into current context
20
var md = do_get_cwd().parent;
21
md.append("mimeDecrypt.js");
22
do_load_module("file://" + md.path);