diff options
Diffstat (limited to 'comm/calendar/test/unit/test_bug523860.js')
-rw-r--r-- | comm/calendar/test/unit/test_bug523860.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/comm/calendar/test/unit/test_bug523860.js b/comm/calendar/test/unit/test_bug523860.js new file mode 100644 index 0000000000..c5455eda3d --- /dev/null +++ b/comm/calendar/test/unit/test_bug523860.js @@ -0,0 +1,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"); +} |