summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/import/test/unit/test_bug_263304.js
blob: 7089c0a4c21e42d03850af767271fa0992617911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * Tests importing an address book export in the LDAP data interchange format
 * (LDIF) with a labeledURI and checks the accuracy of the imported contact.
 *
 * This test checks for the following bug:
 *   - Bug 264405: The Address Book doesn't show the LDAP-field "labeledURI"
 *                 as Website
 */
var { MailServices } = ChromeUtils.import(
  "resource:///modules/MailServices.jsm"
);

function run_test() {
  // Due to the import code using nsIAbManager off the main thread, we need
  // to ensure that it is initialized before we start the main test.
  MailServices.ab;

  var file = do_get_file("resources/bug_263304.ldif");
  new AbImportHelper(
    file,
    "Text file",
    "bug_263304",
    "bug_263304"
  ).beginImport();
}