This page was design to test the extracting contact information from hCalendar. The test includes those elements of hCard most likely to be used as contact information for a event
From: hCalendar test suite 1.0
Tests:
| Test | Result | Comment |
|---|---|---|
| vevent[0].contact.n.honorific-prefix[0] | IsEqualTo("Dr") | The honorific-prefix is a optional multiple value |
| vevent[0].contact.n.given-name[0] | IsEqualTo("John") | The given-name is a optional multiple value |
| vevent[0].contact.n.additional-name[0] | IsEqualTo("Peter") | The additional-name is a optional multiple value |
| vevent[0].contact.n.family-name[0] | IsEqualTo("Doe") | The family-name is a optional multiple value |
| vevent[0].contact.n.honorific-suffix[1] | IsEqualTo("PHD") | The honorific-suffix is a optional multiple value |
| vevent[0].contact.adr[0].type[0] | IsEqualToCaseInsensitive("home") | The type is a optional multiple value. Types are case insensitive |
| vevent[0].contact.adr[0].post-office-box | IsEqualTo("PO Box 46") | The post-office-box is a optional singular value |
| vevent[0].contact.adr[0].street-address[1] | IsEqualTo("West Street") | The street-address is a optional multiple value |
| vevent[0].contact.adr[0].extended-address | IsEqualTo("Flat 2") | The extended-address is a optional singular value |
| vevent[0].contact.adr[0].region | IsEqualTo("East Sussex") | The region is a optional singular value |
| vevent[0].contact.adr[0].locality | IsEqualTo("Brighton") | The locality is a optional singular value |
| vevent[0].contact.adr[0].postal-code | IsEqualTo("BN1 3DF") | The postal-code is a optional singular value |
| vevent[0].contact.adr[0].country-name | IsEqualTo("United Kingdom") | The country-name is a optional singular value |
| vevent[0].contact.email[0].value | IsEqualTo("john@example.com") | Should collect the email address from href attribute |
| vevent[0].contact.tel[0].value | IsEqualToPhoneNumber("01273 700100") | Should collect the telephone number from a descendant node with value property |
| vevent[0].contact.url[0] | IsEqualTo("http://www.example.com/") | Should collect the url value |
History: