releases-comm-central/calendar/test/unit/test_bug523860.js

16 строки
632 B
JavaScript
Исходник Обычный вид История

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/. */
Bug 1847647 - ESMify calendar utility modules. r=aleca Differential Revision: https://phabricator.services.mozilla.com/D185875 --HG-- rename : calendar/base/modules/calUtils.jsm => calendar/base/modules/calUtils.sys.mjs rename : calendar/base/modules/utils/calACLUtils.jsm => calendar/base/modules/utils/calACLUtils.sys.mjs rename : calendar/base/modules/utils/calAlarmUtils.jsm => calendar/base/modules/utils/calAlarmUtils.sys.mjs rename : calendar/base/modules/utils/calAuthUtils.jsm => calendar/base/modules/utils/calAuthUtils.sys.mjs rename : calendar/base/modules/utils/calCategoryUtils.jsm => calendar/base/modules/utils/calCategoryUtils.sys.mjs rename : calendar/base/modules/utils/calDataUtils.jsm => calendar/base/modules/utils/calDataUtils.sys.mjs rename : calendar/base/modules/utils/calDateTimeFormatter.jsm => calendar/base/modules/utils/calDateTimeFormatter.sys.mjs rename : calendar/base/modules/utils/calDateTimeUtils.jsm => calendar/base/modules/utils/calDateTimeUtils.sys.mjs rename : calendar/base/modules/utils/calEmailUtils.jsm => calendar/base/modules/utils/calEmailUtils.sys.mjs rename : calendar/base/modules/utils/calInvitationUtils.jsm => calendar/base/modules/utils/calInvitationUtils.sys.mjs rename : calendar/base/modules/utils/calItemUtils.jsm => calendar/base/modules/utils/calItemUtils.sys.mjs rename : calendar/base/modules/utils/calIteratorUtils.jsm => calendar/base/modules/utils/calIteratorUtils.sys.mjs rename : calendar/base/modules/utils/calItipUtils.jsm => calendar/base/modules/utils/calItipUtils.sys.mjs rename : calendar/base/modules/utils/calL10NUtils.jsm => calendar/base/modules/utils/calL10NUtils.sys.mjs rename : calendar/base/modules/utils/calPrintUtils.jsm => calendar/base/modules/utils/calPrintUtils.sys.mjs rename : calendar/base/modules/utils/calProviderDetectionUtils.jsm => calendar/base/modules/utils/calProviderDetectionUtils.sys.mjs rename : calendar/base/modules/utils/calProviderUtils.jsm => calendar/base/modules/utils/calProviderUtils.sys.mjs rename : calendar/base/modules/utils/calUnifinderUtils.jsm => calendar/base/modules/utils/calUnifinderUtils.sys.mjs rename : calendar/base/modules/utils/calViewUtils.jsm => calendar/base/modules/utils/calViewUtils.sys.mjs rename : calendar/base/modules/utils/calWindowUtils.jsm => calendar/base/modules/utils/calWindowUtils.sys.mjs rename : calendar/base/modules/utils/calXMLUtils.jsm => calendar/base/modules/utils/calXMLUtils.sys.mjs extra : amend_source : c2e9643e8c3f953786dd86e61743c299214d5c48
2023-08-15 13:08:52 +03:00
var { cal } = ChromeUtils.importESModule("resource:///modules/calendar/calUtils.sys.mjs");
function run_test() {
// In bug 523860, we found out that in the spec doublequotes should not be
// escaped.
const prop = cal.icsService.createIcalProperty("DESCRIPTION");
const expected = "A String with \"quotes\" and 'other quotes'";
prop.value = expected;
equal(prop.icalString, "DESCRIPTION:" + expected + "\r\n");
}