summaryrefslogtreecommitdiffstats
path: root/comm/calendar/test/unit/test_bug523860.js
blob: c5455eda3df6858f0d268b42708fb8720792e046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

var { cal } = ChromeUtils.import("resource:///modules/calendar/calUtils.jsm");

function run_test() {
  // In bug 523860, we found out that in the spec doublequotes should not be
  // escaped.
  let prop = cal.icsService.createIcalProperty("DESCRIPTION");
  let expected = "A String with \"quotes\" and 'other quotes'";

  prop.value = expected;
  equal(prop.icalString, "DESCRIPTION:" + expected + "\r\n");
}