basic_tests.ics 4.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Events Feed
X-WR-TIMEZONE:America/New_York
X-WR-CALDESC:A calendar for the events feed

BEGIN:VTIMEZONE
TZID:America/New_York
X-LIC-LOCATION:America/New_York
BEGIN:DAYLIGHT
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE

BEGIN:VEVENT
SUMMARY:UTC Event
DTSTART:20131020T000000Z
DTEND:20131020T020000Z
UID:date_ical_basic_test01
DESCRIPTION:This is a standard 2-hour event using UTC.
END:VEVENT

BEGIN:VEVENT
SUMMARY:America/New_York Event
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test02
DESCRIPTION:This is a standard 2-hour event in America/New_York.
END:VEVENT

BEGIN:VEVENT
46
SUMMARY:Central Standard Time Event
47 48 49
DTSTART;TZID=Central Standard Time:20131009T190000
DTEND;TZID=Central Standard Time:20131009T210000
UID:date_ical_basic_test03
50
DESCRIPTION:This event uses a Windows TZID, Central Standard Time, and will be parsed correctly only in Date iCal 3.1+.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with no DTEND or DURATION
DTSTART;TZID=America/New_York:20131009T190000
UID:date_ical_basic_test04
DESCRIPTION:This event doesn't have an end time.
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with no DTEND, but with 45-min DURATION
DTSTART;TZID=America/New_York:20131009T190000
DURATION:PT45M
UID:date_ical_basic_test05
DESCRIPTION:This event uses DURATION for end time, instead of DTEND.
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with no TZID (should use X-WR-TIMEZONE)
DTSTART:20131009T190000
DURATION:PT45M
UID:date_ical_basic_test06
DESCRIPTION:This event defines no TZID, so the parser should fall back onto the X-WR-TIMEZONE.
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with no DESCRIPTION
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test07
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with LOCATION + ALTREP
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test08
DESCRIPTION:This event has a LOCATION with an ALTREP.
LOCATION;ALTREP="http://www.example.com":Example's Place
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with 1 CATEGORIES
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test09
DESCRIPTION:This event has a single CATEGORIES value.
CATEGORIES:Category 1
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with multiple CATEGORIES
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test0A
DESCRIPTION:This event has several CATEGORIES values.
CATEGORIES:Category 1,Category 2,Category 3
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with a URL
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test0B
DESCRIPTION:This event has a URL.
URL:http://www.example.com
END:VEVENT

BEGIN:VEVENT
SUMMARY:Event with escaped characters in DESCRIPTION
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
123
UID:date_ical_basic_test0C
124 125 126
DESCRIPTION:This event has several escaped characters right here:\,\;\\\n\NThis text should be 2 lines down from the rest.
END:VEVENT

127 128 129 130 131 132 133 134
BEGIN:VEVENT
SUMMARY:Bad TZID Event
DTSTART;TZID=Fake TZID:20131009T190000
DTEND;TZID=Fake TZID:20131009T210000
UID:date_ical_basic_test0D
DESCRIPTION:This event uses a fake TZID and should throw the "not a valid timezone" warning at import time, and be treated as UTC.
END:VEVENT

135 136 137 138 139 140 141 142 143
BEGIN:VEVENT
SUMMARY:Event w/ GEO
DTSTART;TZID=America/New_York:20131009T190000
DTEND;TZID=America/New_York:20131009T210000
UID:date_ical_basic_test0E
DESCRIPTION:This is a standard event that has a GEO field.
GEO:34.1378534;-118.1252851
END:VEVENT

144
END:VALENDAR