diff options
| author | Ulf Jasper | 2019-09-09 18:35:02 +0200 |
|---|---|---|
| committer | Ulf Jasper | 2019-09-09 18:35:02 +0200 |
| commit | 74e9799bd89484b8d15bdd6597c68fc00d07e7f7 (patch) | |
| tree | 74756323a885eb3ce329c68ccb6852682db7a9e7 /test/lisp | |
| parent | 4042dad139d922723aabcfaef5662db8204fb355 (diff) | |
| download | emacs-74e9799bd89484b8d15bdd6597c68fc00d07e7f7.tar.gz emacs-74e9799bd89484b8d15bdd6597c68fc00d07e7f7.zip | |
Handle missing start-time when importing ical event (Bug#33277)
* lisp/calendar/icalendar.el (icalendar--convert-ical-to-diary): Set
start time only if it is explicitly given in ical. Do not use
start-time as default for end-time (Bug#33277).
* test/lisp/calendar/icalendar-tests.el (icalendar-import-bug-33277):
New. Test fix for Bug#33277.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/calendar/icalendar-tests.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lisp/calendar/icalendar-tests.el b/test/lisp/calendar/icalendar-tests.el index baea4804045..0d7004d7106 100644 --- a/test/lisp/calendar/icalendar-tests.el +++ b/test/lisp/calendar/icalendar-tests.el | |||
| @@ -1300,6 +1300,24 @@ UID:9188710a-08a7-4061-bae3-d4cf4972599a | |||
| 1300 | " | 1300 | " |
| 1301 | )) | 1301 | )) |
| 1302 | 1302 | ||
| 1303 | (ert-deftest icalendar-import-bug-33277 () | ||
| 1304 | ;;bug#33277 -- start time equals end time | ||
| 1305 | (icalendar-tests--test-import | ||
| 1306 | "DTSTART:20181105T200000Z | ||
| 1307 | DTSTAMP:20181105T181652Z | ||
| 1308 | DESCRIPTION: | ||
| 1309 | LAST-MODIFIED:20181105T181646Z | ||
| 1310 | LOCATION: | ||
| 1311 | SEQUENCE:0 | ||
| 1312 | SUMMARY:event with same start/end time | ||
| 1313 | TRANSP:OPAQUE | ||
| 1314 | " | ||
| 1315 | |||
| 1316 | "&2018/11/5 21:00 event with same start/end time\n" | ||
| 1317 | "&5/11/2018 21:00 event with same start/end time\n" | ||
| 1318 | "&11/5/2018 21:00 event with same start/end time\n" | ||
| 1319 | )) | ||
| 1320 | |||
| 1303 | (ert-deftest icalendar-import-multiple-vcalendars () | 1321 | (ert-deftest icalendar-import-multiple-vcalendars () |
| 1304 | (icalendar-tests--test-import | 1322 | (icalendar-tests--test-import |
| 1305 | "DTSTART;VALUE=DATE:20110723 | 1323 | "DTSTART;VALUE=DATE:20110723 |