Skip to content

Commit

Permalink
Add test case for empty attribute for implied url property
Browse files Browse the repository at this point in the history
  • Loading branch information
sknebel committed Jun 3, 2017
1 parent 6fdbdf6 commit 43a9173
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/microformats-v2/h-card/change-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ <h2>Change log:</h2>
<ul>
<!-- Add change log event to the top of this list as a h-entry -->
<li class="h-entry">
<span class="p-name e-content">Added test for empty href="" attribute in implied property</span> &dash;
<time class="dt-published" datetime="2017-06-3">3 June 2017</time>
by <span class="p-author">Sven Knebel</span>
</li>
<li class="h-entry">
<span class="p-name e-content">Added test using empty href="" attribute to reference current page</span> &dash;
<time class="dt-published" datetime="2017-05-27">27 May 2017</time>
by <span class="p-author">Sven Knebel</span>
Expand Down
5 changes: 5 additions & 0 deletions tests/microformats-v2/h-card/impliedurlempty.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<a class="h-card" href="">Jane Doe</a>
<area class="h-card" href="" alt="Jane Doe"/ >
<div class="h-card" ><a href="">Jane Doe</a><p></p></div>
<div class="h-card" ><area href="">Jane Doe</area><p></p></div>
<div class="h-card" ><a class="h-card" href="">Jane Doe</a><p></p></div>
45 changes: 45 additions & 0 deletions tests/microformats-v2/h-card/impliedurlempty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"items": [{
"type": ["h-card"],
"properties": {
"name": ["Jane Doe"],
"url": ["http://example.com/"]
}
},
{
"type": ["h-card"],
"properties": {
"name": ["Jane Doe"],
"url": ["http://example.com/"]
}
},
{
"type": ["h-card"],
"properties": {
"name": ["Jane Doe"],
"url": ["http://example.com/"]
}
},
{
"type": ["h-card"],
"properties": {
"name": ["Jane Doe"],
"url": ["http://example.com/"]
}
},
{
"type": ["h-card"],
"properties": {
"name": ["Jane Doe"]
},
"children": [{
"type": ["h-card"],
"properties": {
"name": ["Jane Doe"],
"url": ["http://example.com/"]
}
}]
}],
"rels": {},
"rel-urls": {}
}

0 comments on commit 43a9173

Please sign in to comment.