summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/addrbook/test/unit/test_bug387403.js
blob: 9f8621c70588748a86392cc8b5d3ec62b72230a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/**
 * Test for bug 387403 crash when opening e-mail with broken vcard.
 */

function run_test() {
  // Before bug 387403 this would hang, eating up all the memory until it
  // crashed.
  try {
    Cc["@mozilla.org/addressbook/msgvcardservice;1"]
      .getService(Ci.nsIMsgVCardService)
      .escapedVCardToAbCard(
        "begin:vcard\nfn;quoted-printable:Xxxx=C5=82xx  Xxx\nn;quoted-printable:Xxx;Xxxx=C5=82xx \nadr;quoted-printable;quoted-printable;dom:;;xx. Xxxxxxxxxxxx X;Xxxxxx=C3=3"
      );
  } catch (ex) {}
}