diff options
| author | Ulf Jasper | 2015-12-05 16:55:49 +0100 |
|---|---|---|
| committer | Ulf Jasper | 2015-12-05 17:00:44 +0100 |
| commit | 0daba4888771e29f2edf170216adaf3d33040bea (patch) | |
| tree | ec8f5223cc06b8773bca95ac42c4194ec53a612a /test | |
| parent | 21c042bc6d42ad0d1562a1ac259025b72fcd4e3c (diff) | |
| download | emacs-0daba4888771e29f2edf170216adaf3d33040bea.tar.gz emacs-0daba4888771e29f2edf170216adaf3d33040bea.zip | |
Fix Bug#22092.
* lisp/calendar/icalendar.el (icalendar--get-unfolded-buffer):
Clean up inconsistent line endings. (Bug#22092)
(icalendar--clean-up-line-endings): New.
* test/automated/icalendar-tests.el (icalendar-real-world): Add test
for Bug#22092.
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/icalendar-tests.el | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/automated/icalendar-tests.el b/test/automated/icalendar-tests.el index 7e05d49883e..829cbf2d765 100644 --- a/test/automated/icalendar-tests.el +++ b/test/automated/icalendar-tests.el | |||
| @@ -2231,7 +2231,63 @@ END:VCALENDAR" | |||
| 2231 | Class: PUBLIC | 2231 | Class: PUBLIC |
| 2232 | UID: 040000008200E00074C5B7101A82E0080000000020FFAED0CFEFCC01000000000000000010000000575268034ECDB649A15349B1BF240F15 | 2232 | UID: 040000008200E00074C5B7101A82E0080000000020FFAED0CFEFCC01000000000000000010000000575268034ECDB649A15349B1BF240F15 |
| 2233 | " nil) | 2233 | " nil) |
| 2234 | |||
| 2235 | ;; 2015-12-05, mixed line endings and empty lines, see Bug#22092. | ||
| 2236 | (icalendar-tests--test-import | ||
| 2237 | "BEGIN:VCALENDAR\r | ||
| 2238 | PRODID:-//www.norwegian.no//iCalendar MIMEDIR//EN\r | ||
| 2239 | VERSION:2.0\r | ||
| 2240 | METHOD:REQUEST\r | ||
| 2241 | BEGIN:VEVENT\r | ||
| 2242 | UID:RFCALITEM1\r | ||
| 2243 | SEQUENCE:1512040950\r | ||
| 2244 | DTSTAMP:20141204T095043Z\r | ||
| 2245 | ORGANIZER:noreply@norwegian.no\r | ||
| 2246 | DTSTART:20141208T173000Z\r | ||
| 2247 | |||
| 2248 | DTEND:20141208T215500Z\r | ||
| 2249 | |||
| 2250 | LOCATION:Stavanger-Sola\r | ||
| 2251 | |||
| 2252 | DESCRIPTION:Fly med Norwegian, reservasjon. Fra Stavanger til Tromsø 8. des 2014 18:30, DY545Fly med Norwegian, reservasjon . Fra Stavanger til Tromsø 8. des 2014 21:00, DY390\r | ||
| 2253 | |||
| 2254 | X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\"><html><head><META NAME=\"Generator\" CONTENT=\"MS Exchange Server version 08.00.0681.000\"><title></title></head><body><b><font face=\"Calibri\" size=\"3\">Reisereferanse</p></body></html> | ||
| 2255 | SUMMARY:Norwegian til Tromsoe-Langnes -\r | ||
| 2256 | |||
| 2257 | CATEGORIES:Appointment\r | ||
| 2258 | |||
| 2259 | |||
| 2260 | PRIORITY:5\r | ||
| 2261 | |||
| 2262 | CLASS:PUBLIC\r | ||
| 2263 | |||
| 2264 | TRANSP:OPAQUE\r | ||
| 2265 | END:VEVENT\r | ||
| 2266 | END:VCALENDAR | ||
| 2267 | " | ||
| 2268 | "&2014/12/8 18:30-22:55 Norwegian til Tromsoe-Langnes - | ||
| 2269 | Desc: Fly med Norwegian, reservasjon. Fra Stavanger til Tromsø 8. des 2014 18:30, DY545Fly med Norwegian, reservasjon . Fra Stavanger til Tromsø 8. des 2014 21:00, DY390 | ||
| 2270 | Location: Stavanger-Sola | ||
| 2271 | Organizer: noreply@norwegian.no | ||
| 2272 | Class: PUBLIC | ||
| 2273 | UID: RFCALITEM1 | ||
| 2274 | " | ||
| 2275 | "&8/12/2014 18:30-22:55 Norwegian til Tromsoe-Langnes - | ||
| 2276 | Desc: Fly med Norwegian, reservasjon. Fra Stavanger til Tromsø 8. des 2014 18:30, DY545Fly med Norwegian, reservasjon . Fra Stavanger til Tromsø 8. des 2014 21:00, DY390 | ||
| 2277 | Location: Stavanger-Sola | ||
| 2278 | Organizer: noreply@norwegian.no | ||
| 2279 | Class: PUBLIC | ||
| 2280 | UID: RFCALITEM1 | ||
| 2281 | " | ||
| 2282 | "&12/8/2014 18:30-22:55 Norwegian til Tromsoe-Langnes - | ||
| 2283 | Desc: Fly med Norwegian, reservasjon. Fra Stavanger til Tromsø 8. des 2014 18:30, DY545Fly med Norwegian, reservasjon . Fra Stavanger til Tromsø 8. des 2014 21:00, DY390 | ||
| 2284 | Location: Stavanger-Sola | ||
| 2285 | Organizer: noreply@norwegian.no | ||
| 2286 | Class: PUBLIC | ||
| 2287 | UID: RFCALITEM1 | ||
| 2288 | " | ||
| 2234 | ) | 2289 | ) |
| 2290 | ) | ||
| 2235 | 2291 | ||
| 2236 | (provide 'icalendar-tests) | 2292 | (provide 'icalendar-tests) |
| 2237 | ;;; icalendar-tests.el ends here | 2293 | ;;; icalendar-tests.el ends here |