Microformats test suite

hCard 6 - extracting email addresses test

This page test that parsers can extract email addresses from differnt structures. This includes type property and value excerpting test.

From: hCard test suite 1.0

Author: Glenn Jones

Tests:

Test Result Comment
vcard[0].email[0].value IsEqualTo("[email protected]") Should collect the email address from href attribute
vcard[1].email[0].value IsEqualTo("[email protected]") Where a type is specified, but the value is not then the node text is the value
vcard[2].email[0].value IsEqualTo("[email protected]") Should collect the email address from the node text
vcard[3].email[0].type[0] IsEqualToCaseInsensitive("Internet") Should find the type value. Types are case insensitive
vcard[4].email[0].type[3] HasProperty(false) The thrid type value "lotus-notes" is incorrect
vcard[5].email[0].value IsEqualTo("[email protected]") Should not conatin quertystring "?subject=parser-test"
vcard[6].email[0].value IsEqualTo("[email protected]") Where a type is specified, but the value is not then the node text is the value

History:

John Doe -

John Doe -

John Doe -

John Doe -
John Doe -

John Doe -

Some rights reserved