2012-05-30 20:48:24 +04:00
|
|
|
/* 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/. */
|
2011-07-28 05:05:00 +04:00
|
|
|
|
2023-08-15 13:08:52 +03:00
|
|
|
var { cal } = ChromeUtils.importESModule("resource:///modules/calendar/calUtils.sys.mjs");
|
2011-07-28 05:05:00 +04:00
|
|
|
|
|
|
|
function run_test() {
|
2019-08-29 22:15:53 +03:00
|
|
|
// In bug 523860, we found out that in the spec doublequotes should not be
|
|
|
|
// escaped.
|
2023-09-22 03:41:53 +03:00
|
|
|
const prop = cal.icsService.createIcalProperty("DESCRIPTION");
|
|
|
|
const expected = "A String with \"quotes\" and 'other quotes'";
|
2011-07-28 05:05:00 +04:00
|
|
|
|
2019-08-29 22:15:53 +03:00
|
|
|
prop.value = expected;
|
|
|
|
equal(prop.icalString, "DESCRIPTION:" + expected + "\r\n");
|
2011-07-28 05:05:00 +04:00
|
|
|
}
|