~ubuntu-branches/ubuntu/trusty/enigmail/trusty-updates

« back to all changes in this revision

Viewing changes to package/tests/mimeDecrypt-test.js

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2015-08-26 20:07:19 UTC
  • mfrom: (0.12.19)
  • Revision ID: package-import@ubuntu.com-20150826200719-t3qktwtjhs7qzjq1
Tags: 2:1.8.2-0ubuntu0.14.04.1
* New upstream release v1.8.2 to support Thunderbird 38
  - Fixes LP: #1489103 - Per-account settings missing after Thunderbird
    update

* Depend on gnupg2 instead of gnupg. Whilst this enigmail version still
  works with gnupg 1.4.*, it pops up an alert warning that it will be the
  last version to do so
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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/.
 
5
 */
 
6
 
 
7
 
 
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");
 
15
}
 
16
 
 
17
function run_test() {
 
18
 
 
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);
 
23
 
 
24
  getBoundary_test();
 
25
}
 
26