hcard-tests

From Microformats

hCard tests

The hcard and hcalendar tests collection (http://microformats.org/tests/) was announced in a Jun 7 2006 message (http://microformats.org/discuss/mail/microformats-dev/2006-June/000102.html) from RyanKing (http://theryanking.com/).

They are published at http://microformats.org/tests/hcard/. Each test has an HTML file to parse and a vCard file which describes the hCard data contained in the HTML file.

It's managed in an hg repository (http://hg.microformats.org/tests/). hg/mercurial (http://www.selenic.com/mercurial/) is a distributed revision control system. It can be a little tricky to unlearn cvs habits; there are some good diagrams in slides from a 19 Jun talk that Bryan O'Sullivan gave at google (http://www.selenic.com/mercurial/wiki/index.cgi/Presentations?action=AttachFile&do=get&target=google.pdf). The mercurial presentations page (http://www.selenic.com/mercurial/wiki/index.cgi/Presentations) also has a link to a 50 minute video.

An x2v hg repository (http://hg.microformats.org/x2v/) holds code that, by design, passes the tests. x2v-issues is a place to track issues in that code.

External Tests

These tests have been obsoleted by the above test suite.

DanConnolly is working on hcardTest.html (http://dev.w3.org/cvsweb/2001/palmagent/hcardTest.html); the current version (http://dev.w3.org/cvsweb/~checkout~/2001/palmagent/hcardTest.html?rev=HEAD&content-type=text/html;%20charset=iso-8859-1) is always available. (I dunno why cvsweb uses the ordinary looing URL for the changelog rather than the current version.)

MarkPilgrim maintains a series of hCard tests (http://diveintomark.org/projects/greasemonkey/hcard/tests/) for use with his hCard parser (http://diveintomark.org/projects/greasemonkey/hcard/)

Related Pages

The hCard specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added. These thoughts, issues, and questions are kept in separate pages.

Personal tools