summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/import/test/unit/test_bug_263304.js
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mailnews/import/test/unit/test_bug_263304.js')
-rw-r--r--comm/mailnews/import/test/unit/test_bug_263304.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/comm/mailnews/import/test/unit/test_bug_263304.js b/comm/mailnews/import/test/unit/test_bug_263304.js
new file mode 100644
index 0000000000..7089c0a4c2
--- /dev/null
+++ b/comm/mailnews/import/test/unit/test_bug_263304.js
@@ -0,0 +1,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();
+}