Microformats test suite

hResume 3 - extracting contact test

This page was design to test the extracting contact information from hResume. The test includes those elements of hCard most likely to be used as contact information in a CV.

From: hResume test suite 1.0

Author: Glenn Jones

Tests:

Test Result Comment
hresume[0].contact.n.honorific-prefix[0] IsEqualTo("Dr") The honorific-prefix is a optional multiple value
hresume[0].contact.n.given-name[0] IsEqualTo("John") The given-name is a optional multiple value
hresume[0].contact.n.additional-name[0] IsEqualTo("Peter") The additional-name is a optional multiple value
hresume[0].contact.n.family-name[0] IsEqualTo("Doe") The family-name is a optional multiple value
hresume[0].contact.n.honorific-suffix[1] IsEqualTo("PHD") The honorific-suffix is a optional multiple value
hresume[0].contact.adr[0].type[0] IsEqualToCaseInsensitive("home") The type is a optional multiple value. Types are case insensitive
hresume[0].contact.adr[0].post-office-box IsEqualTo("PO Box 46") The post-office-box is a optional singular value
hresume[0].contact.adr[0].street-address[1] IsEqualTo("West Street") The street-address is a optional multiple value
hresume[0].contact.adr[0].extended-address IsEqualTo("Flat 2") The extended-address is a optional singular value
hresume[0].contact.adr[0].region IsEqualTo("East Sussex") The region is a optional singular value
hresume[0].contact.adr[0].locality IsEqualTo("Brighton") The locality is a optional singular value
hresume[0].contact.adr[0].postal-code IsEqualTo("BN1 3DF") The postal-code is a optional singular value
hresume[0].contact.adr[0].country-name IsEqualTo("United Kingdom") The country-name is a optional singular value
hresume[0].contact.email[0].value IsEqualTo("john@example.com") Should collect the email address from href attribute
hresume[0].contact.tel[0].value IsEqualToPhoneNumber("01273 700100") Should collect the telephone number from a descendant node with value property
hresume[0].contact.url[0] IsEqualTo("http://www.example.com/") Should collect the url value

History:

Dr John Peter Doe MSc, PHD
Home:
PO Box 46, Flat 2, Sunny House, West Street, Brighton, East Sussex, United Kingdom, BN1 3DF
Preferred: 01273 700100
blog
Interactive designer looking for a job

Some rights reserved