Difference between revisions of "hcard-tests"

From Microformats Wiki
hcard-tests
Jump to navigation Jump to search
(a bunch more tests... hope this works...)
m (Replace <entry-title> with {{DISPLAYTITLE:}})
 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
= hCard Tests =
+
{{DISPLAYTITLE: hCard tests }}
 +
== newest tests ==
 +
From [[test-suite]]:
 +
* http://ufxtract.com/testsuite/hcard/
 +
* http://ufxtract.com/testsuite/geo/
 +
* ...
  
This page is for documenting [[hcard|hCard]] tests / test cases, both directly, and by reference.
+
== previous mercurial tests ==
 +
The [http://microformats.org/tests/ hcard and hcalendar tests collection] was announced in a [http://microformats.org/discuss/mail/microformats-dev/2006-June/000102.html Jun 7 2006 message] from [http://theryanking.com/ RyanKing].
  
== Test Cases ==
+
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.
  
=== simple hCard ===
+
It's managed in [http://hg.microformats.org/tests/ an hg repository]. [http://www.selenic.com/mercurial/ hg/mercurial] is a distributed revision control system. It can be a little tricky to unlearn cvs habits; there are some good diagrams in [http://www.selenic.com/mercurial/wiki/index.cgi/Presentations?action=AttachFile&do=get&target=google.pdf slides from a 19 Jun talk that Bryan O'Sullivan gave at google]. The [http://www.selenic.com/mercurial/wiki/index.cgi/Presentations mercurial presentations page] also has a link to a 50 minute video.
  
* code
+
An [http://hg.microformats.org/x2v/ x2v hg repository] holds code that, by design, passes the tests. [[x2v-issues]] is a place to track issues
<pre>
+
in that code.
<span class="vcard"><span class="fn n">Tantek Çelik</span></span>
 
</pre>
 
  
* inline
+
== even older external tests ==
<span class="vcard"><span class="fn n">Tantek Çelik</span></span>
+
These <span id="External_Tests">external tests</span> have been obsoleted by the above test suites.
  
=== a bunch more ===
+
DanConnolly is working on [http://dev.w3.org/cvsweb/2001/palmagent/hcardTest.html hcardTest.html]; [http://dev.w3.org/cvsweb/~checkout~/2001/palmagent/hcardTest.html?rev=HEAD&content-type=text/html;%20charset=iso-8859-1 the current version] is always available. (I dunno why cvsweb uses the ordinary looing URL for the changelog rather than the current version.)
 
 
  <div class="vcard">
 
    <span class="fn">John Doe</span>
 
    <span class="note">normal card</span>
 
  </div>
 
 
 
  <div class="vcard" id="thisOne">
 
 
 
    <span class="fn">John Doe</span>
 
    <span class="note">card with an ID</span>
 
  </div>
 
  
  <div class="vcard ">
+
MarkPilgrim maintains a series of [http://diveintomark.org/projects/greasemonkey/hcard/tests/ hCard tests] for use with his [http://diveintomark.org/projects/greasemonkey/hcard/ hCard parser]
    <span class=" fn">John Doe2</span>
 
    <span class="note">tabs in class fields</span>
 
  
  </div>
+
== Related Pages ==
 
+
{{hcard-related-pages}}
  <div class="vcard
 
stuff">
 
    <span class="
 
fn">John Doe3</span>
 
    <span class="note">LFs in class fields</span>
 
  </div>
 
 
 
  <div class="vcard
 
stuff">
 
    <span class="
 
fn">John Doe3</span>
 
 
 
    <span class="note">CRs in class fields</span>
 
  </div>
 
 
 
  <div lang="es">
 
    <div class="vcard">
 
      <span class="fn">John Doe4</span>
 
      <span class="note">lang dominating vcard</span>
 
    </div>
 
 
 
  </div>
 
 
 
  <div class="vcard">
 
    <span class="fn" xml:lang="de">John Doe5</span>
 
    <span class="note">xml:lang on name elt</span>
 
  </div>
 
 
 
  <p>one from <a href="http://tantek.com/microformats/hcard-creator.html">hCard Creator</a>... hmm... no email address support?</p>
 
 
 
<div class="vcard">
 
  <img style="float:left; margin-right:4px" src="http://www.w3.org/People/Connolly/9704/dan_c_thumb.jpg" alt="photo" class="photo"/>
 
<a class="url fn" href="http://www.w3.org/">Dan Connolly</a>
 
<div class="org">W3C/MIT</div>
 
<div class="adr">
 
  <div class="street-address">200 Tech Square</div>
 
  <span class="locality">Cambridge</span>,
 
  <span class="region">MA</span>
 
 
 
  <span class="postal-code">02139</span>
 
</div>
 
<div class="tel">555-1212</div>
 
</div>
 
 
 
<p>one from <a href="http://thedredge.org/2005/06/using-hcards-in-your-blog/">The Dredge // Blog Archive // Using hcards in your blog</a>:</p>
 
 
 
<div class="vcard">
 
 
 
<a href="http://suda.co.uk" title="Visit brian suda's website"><img src="http://www.gravatar.com/avatar.php?gravatar_id=47670f6479d568975c906a0dc49df6ec&amp;size=50&amp;default=http%3A%2F%2Fthedredge.org%2Fi%2Funknown.gif" alt=""/></a>
 
<a class="fn url" rel="contact colleague" href="http://suda.co.uk">brian suda</a>
 
<span class="cdate"><a href="#comment-" title="">25.6.05</a></span>
 
<span class="rel"><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a>: contact colleague</span>
 
 
 
 
<span class="id"> #001087</span>
 
 
 
</div>
 
 
 
== External Tests ==
 
 
 
DanConnolly is working on [http://dev.w3.org/cvsweb/2001/palmagent/hcardTest.html hcardTest.html]; [http://dev.w3.org/cvsweb/~checkout~/2001/palmagent/hcardTest.html?rev=HEAD&content-type=text/html;%20charset=iso-8859-1 the current version] is always available. (I dunno why cvsweb uses the ordinary looing URL for the changelog rather than the current version.)
 

Latest revision as of 16:26, 18 July 2020

newest tests

From microformats test suites:

previous mercurial tests

The hcard and hcalendar tests collection was announced in a Jun 7 2006 message from RyanKing.

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. hg/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. The mercurial presentations page also has a link to a 50 minute video.

An x2v hg repository holds code that, by design, passes the tests. x2v-issues is a place to track issues in that code.

even older external tests

These external tests have been obsoleted by the above test suites.

DanConnolly is working on hcardTest.html; the current version 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 for use with his hCard parser

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.