Commit c80db98f authored by Gregor Morrill's avatar Gregor Morrill

Added microformat test suite https://github.com/tobiastom/tests

Issue #50
parent ab9295b1
<p class="adr">665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.</p>
\ No newline at end of file
{
"items": [{
"type": ["h-adr"],
"properties": {
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
}
}]
}
\ No newline at end of file
{
"name": "Just a name",
"description": "adr",
"author": "Glenn Jones"
}
\ No newline at end of file
<p class="adr">
<span class="street-address">665 3rd St.</span>
<span class="extended-address">Suite 207</span>
<span class="locality">San Francisco</span>,
<span class="region">CA</span>
<span class="postal-code">94107</span>
<span class="country-name">U.S.A.</span>
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-adr"],
"properties": {
"street-address": ["665 3rd St."],
"extended-address": ["Suite 207"],
"locality": ["San Francisco"],
"region": ["CA"],
"postal-code": ["94107"],
"country-name": ["U.S.A."],
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
}
}]
}
\ No newline at end of file
{
"name": "Broken into properties",
"description": "h-adr",
"author": "Glenn Jones"
}
\ No newline at end of file
{
"name": "adr parsing tests",
"description": "This page was design to test the parsing of adr and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
}
\ No newline at end of file
<p class="geo">
<abbr class="latitude" title="37.408183">N 37° 24.491</abbr>,
<abbr class="longitude" title="-122.13855">W 122° 08.313</abbr>
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-geo"],
"properties": {
"latitude": ["37.408183"],
"longitude": ["-122.13855"],
"name": ["N 37° 24.491, W 122° 08.313"]
}
}]
}
\ No newline at end of file
{
"name": "The <abbr> tag pattern",
"description": "geo",
"author": "Glenn Jones"
}
\ No newline at end of file
<p>
<span class="geo">The Bricklayer's Arms
<span class="latitude">
<span class="value-title" title="51.513458"> </span>
</span>
<span class="longitude">
<span class="value-title" title="-0.14812"> </span>
</span>
</span>
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-geo"],
"properties": {
"latitude": ["51.513458"],
"longitude": ["-0.14812"],
"name": ["The Bricklayer's Arms"]
}
}]
}
\ No newline at end of file
{
"name": "Hidden value-title pattern",
"description": "geo",
"author": "Glenn Jones"
}
\ No newline at end of file
<p>On my way to The Bricklayer's Arms
(Geo: <span class="geo">51.513458;-0.14812</span>)
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-geo"],
"properties": {
"name": ["51.513458;-0.14812"]
}
}]
}
\ No newline at end of file
{
"name": "Just a name",
"description": "geo",
"author": "Glenn Jones"
}
\ No newline at end of file
We are meeting at
<span class="geo">
<span>The Bricklayer's Arms</span>
(Geo: <span class="p-latitude">51.513458</span>:
<span class="p-longitude">-0.14812</span>)
</span>
\ No newline at end of file
{
"items": [{
"type": ["h-geo"],
"properties": {
"latitude": ["51.513458"],
"longitude": ["-0.14812"],
"name": ["The Bricklayer's Arms (Geo: 51.513458: -0.14812)"]
}
}]
}
\ No newline at end of file
{
"name": "Broken into properties",
"description": "geo",
"author": "Glenn Jones"
}
\ No newline at end of file
{
"name": "geo parsing tests",
"description": "This page was design to test the parsing of geo and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
}
\ No newline at end of file
<p>
<span class="geo">
<span class="latitude">
<span class="value-title" title="51.513458">N 51° 51.345</span>,
</span>
<span class="longitude">
<span class="value-title" title="-0.14812">W -0° 14.812</span>
</span>
</span>
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-geo"],
"properties": {
"latitude": ["51.513458"],
"longitude": ["-0.14812"],
"name": ["N 51° 51.345, W -0° 14.812"]
}
}]
}
\ No newline at end of file
{
"name": "Value-title class pattern",
"description": "geo",
"author": "Glenn Jones"
}
\ No newline at end of file
<p class="h-adr">
<span class="p-name">Bricklayer's Arms</span>
<span class="p-label">
<span class="p-street-address">3 Charlotte Road</span>,
<span class="p-locality">City of London</span>,
<span class="p-postal-code">EC2A 3PE</span>,
<span class="p-country-name">UK</span>
</span>
Geo:(<span class="p-geo">51.526421;-0.081067</span>)
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-adr"],
"properties": {
"name": ["Bricklayer's Arms"],
"label": ["3 Charlotte Road, City of London, EC2A 3PE, UK"],
"street-address": ["3 Charlotte Road"],
"locality": ["City of London"],
"postal-code": ["EC2A 3PE"],
"country-name": ["UK"],
"geo": ["51.526421;-0.081067"]
}
}]
}
\ No newline at end of file
{
"name": "With geo data",
"description": "h-adr",
"author": "Glenn Jones"
}
\ No newline at end of file
<p class="h-adr">
<a class="p-name u-geo" href="geo:51.526421;-0.081067;crs=wgs84;u=40">Bricklayer's Arms</a>,
<span class="p-locality">London</span>
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-adr"],
"properties": {
"name": ["Bricklayer's Arms"],
"geo": ["geo:51.526421;-0.081067;crs=wgs84;u=40"],
"locality": ["London"]
}
}]
}
\ No newline at end of file
{
"name": "With geo url",
"description": "h-adr",
"author": "Glenn Jones"
}
\ No newline at end of file
<p class="h-adr">665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.</p>
\ No newline at end of file
{
"items": [{
"type": ["h-adr"],
"properties": {
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
}
}]
}
\ No newline at end of file
{
"name": "Just a name",
"description": "h-adr",
"author": "Glenn Jones"
}
\ No newline at end of file
<p class="h-adr">
<span class="p-street-address">665 3rd St.</span>
<span class="p-extended-address">Suite 207</span>
<span class="p-locality">San Francisco</span>,
<span class="p-region">CA</span>
<span class="p-postal-code">94107</span>
<span class="p-country-name">U.S.A.</span>
</p>
\ No newline at end of file
{
"items": [{
"type": ["h-adr"],
"properties": {
"street-address": ["665 3rd St."],
"extended-address": ["Suite 207"],
"locality": ["San Francisco"],
"region": ["CA"],
"postal-code": ["94107"],
"country-name": ["U.S.A."],
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
}
}]
}
\ No newline at end of file
{
"name": "Broken into properties",
"description": "h-adr",
"author": "Glenn Jones"
}
\ No newline at end of file
{
"name": "h-adr parsing tests",
"description": "This page was design to test the parsing of h-adr. These tests are part of the micorformats 2 test suite."
}
\ No newline at end of file
<a class="h-card" href="http://people.opera.com/howcome/" title="Håkon Wium Lie, CTO Opera">
<article>
<h2 class="p-name">Håkon Wium Lie</h2>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/96/H%C3%A5kon-Wium-Lie-2009-03.jpg/215px-H%C3%A5kon-Wium-Lie-2009-03.jpg" />
</article>
</a>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Håkon Wium Lie"],
"photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/9/96/H%C3%A5kon-Wium-Lie-2009-03.jpg/215px-H%C3%A5kon-Wium-Lie-2009-03.jpg"],
"url": ["http://people.opera.com/howcome/"]
}
}]
}
\ No newline at end of file
{
"name": "Single child implied pattern",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<div class="h-card">
<img class="u-photo" alt="photo of Mitchell" src="http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg" />
<p>
<a class="p-name u-url" href="http://blog.lizardwrangler.com/">Mitchell Baker</a>
(<a class="u-url" href="https://twitter.com/MitchellBaker">@MitchellBaker</a>)
<span class="p-org">Mozilla Foundation</span>
</p>
<p class="p-note">Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities.</p>
<p><span class="p-category">Strategy</span> and <span class="p-category">Leadership</span></p>
</div>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"photo": ["http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"],
"url": ["http://blog.lizardwrangler.com/", "https://twitter.com/MitchellBaker"],
"name": ["Mitchell Baker"],
"org": ["Mozilla Foundation"],
"note": ["Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities."],
"category": ["Strategy", "Leadership"]
}
}]
}
\ No newline at end of file
{
"name": "An extended description",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<div class="h-card">
<a class="p-name u-url" href="http://blog.lizardwrangler.com/">Mitchell Baker</a>
(<a class="p-org h-card" href="http://mozilla.org/">Mozilla Foundation</a>)
</div>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"url": ["http://blog.lizardwrangler.com/"],
"name": ["Mitchell Baker"],
"org": [{
"value": "Mozilla Foundation",
"type": ["h-card"],
"properties": {
"name": ["Mozilla Foundation"],
"url": ["http://mozilla.org/"]
}
}]
}
},{
"type": ["h-card"],
"properties": {
"name": ["Mozilla Foundation"],
"url": ["http://mozilla.org/"]
}
}]
}
\ No newline at end of file
{
"name": "Organization marked-up with h-card",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<div class="h-card">
<a class="p-name u-url" href="http://blog.lizardwrangler.com/">Mitchell Baker</a>
(<a class="p-org h-card h-org" href="http://mozilla.org/">Mozilla Foundation</a>)
</div>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Mitchell Baker"],
"url": ["http://blog.lizardwrangler.com/"],
"org": [{
"value": "Mozilla Foundation",
"type": ["h-card", "h-org"],
"properties": {
"name": ["Mozilla Foundation"],
"url": ["http://mozilla.org/"]
}
}]
}
},{
"type": ["h-card"],
"properties": {
"name": ["Mozilla Foundation"],
"url": ["http://mozilla.org/"]
}
},{
"type": ["h-org"],
"properties": {
"name": ["Mozilla Foundation"]
}
}]
}
\ No newline at end of file
{
"name": "Organization marked-up with h-card and h-org",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<a class="h-card" href="http://rohit.khare.org/">
<img alt="Rohit Khare" src="https://twimg0-a.akamaihd.net/profile_images/53307499/180px-Rohit-sq.jpg" />
</a>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Rohit Khare"],
"photo": ["https://twimg0-a.akamaihd.net/profile_images/53307499/180px-Rohit-sq.jpg"],
"url": ["http://rohit.khare.org/"]
}
}]
}
\ No newline at end of file
{
"name": "A hyperlinked photo",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<a class="h-card" href="http://benward.me/">Ben Ward</a>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Ben Ward"],
"url": ["http://benward.me/"]
}
}]
}
\ No newline at end of file
{
"name": "Just a hyperlink",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<p class="h-card">Frances Berriman</p>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Frances Berriman"]
}
}]
}
\ No newline at end of file
{
"name": "Just a name",
"description": "h-card",
"author": "Glenn Jones"
}
\ No newline at end of file
<div class="h-card">
<a class="p-name u-url" href="http://blog.lizardwrangler.com/">Mitchell Baker</a>
(<a class="h-org h-card" href="http://mozilla.org/">Mozilla Foundation</a>)
</div>
\ No newline at end of file
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Mitchell Baker"],
"url": ["http://blog.lizardwrangler.com/"]
},