Browse Source

add test files illustrating a few different ways feeds (lists of posts) can appear

pull/39/head
Aaron Parecki 5 years ago
parent
commit
4cb548fdfc
6 changed files with 181 additions and 0 deletions
  1. +33
    -0
      tests/data/feed.example.com/h-card-with-child-h-entrys
  2. +33
    -0
      tests/data/feed.example.com/h-card-with-child-h-feed
  3. +29
    -0
      tests/data/feed.example.com/list-of-hentrys
  4. +31
    -0
      tests/data/feed.example.com/list-of-hentrys-with-h-card
  5. +22
    -0
      tests/data/feed.example.com/short-list-of-hentrys-with-h-card
  6. +33
    -0
      tests/data/feed.example.com/top-level-h-feed

+ 33
- 0
tests/data/feed.example.com/h-card-with-child-h-entrys View File

@ -0,0 +1,33 @@
HTTP/1.1 200 OK
Server: Apache
Date: Wed, 09 Dec 2015 03:29:14 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
<html>
<head>
<title>Test</title>
</head>
<body>
<div class="h-card">
<a href="/author" class="u-url p-name">Author Name</a>
<ul>
<li class="h-entry">
<a href="/1" class="u-url p-name">One</a>
</li>
<li class="h-entry">
<a href="/2" class="u-url p-name">Two</a>
</li>
<li class="h-entry">
<a href="/3" class="u-url p-name">Three</a>
</li>
<li class="h-entry">
<a href="/4" class="u-url p-name">Four</a>
</li>
</ul>
</div>
</body>
</html>

+ 33
- 0
tests/data/feed.example.com/h-card-with-child-h-feed View File

@ -0,0 +1,33 @@
HTTP/1.1 200 OK
Server: Apache
Date: Wed, 09 Dec 2015 03:29:14 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
<html>
<head>
<title>Test</title>
</head>
<body>
<div class="h-card">
<a href="/author" class="u-url p-name">Author Name</a>
<ul class="h-feed">
<li class="h-entry">
<a href="/1" class="u-url p-name">One</a>
</li>
<li class="h-entry">
<a href="/2" class="u-url p-name">Two</a>
</li>
<li class="h-entry">
<a href="/3" class="u-url p-name">Three</a>
</li>
<li class="h-entry">
<a href="/4" class="u-url p-name">Four</a>
</li>
</ul>
</div>
</body>
</html>

+ 29
- 0
tests/data/feed.example.com/list-of-hentrys View File

@ -0,0 +1,29 @@
HTTP/1.1 200 OK
Server: Apache
Date: Wed, 09 Dec 2015 03:29:14 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
<html>
<head>
<title>Test</title>
</head>
<body>
<ul>
<li class="h-entry">
<a href="/1" class="u-url p-name">One</a>
</li>
<li class="h-entry">
<a href="/2" class="u-url p-name">Two</a>
</li>
<li class="h-entry">
<a href="/3" class="u-url p-name">Three</a>
</li>
<li class="h-entry">
<a href="/4" class="u-url p-name">Four</a>
</li>
</ul>
</body>
</html>

+ 31
- 0
tests/data/feed.example.com/list-of-hentrys-with-h-card View File

@ -0,0 +1,31 @@
HTTP/1.1 200 OK
Server: Apache
Date: Wed, 09 Dec 2015 03:29:14 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
<html>
<head>
<title>Test</title>
</head>
<body>
<ul>
<li class="h-entry">
<a href="/1" class="u-url p-name">One</a>
</li>
<li class="h-entry">
<a href="/2" class="u-url p-name">Two</a>
</li>
<li class="h-entry">
<a href="/3" class="u-url p-name">Three</a>
</li>
<li class="h-entry">
<a href="/4" class="u-url p-name">Four</a>
</li>
</ul>
<a href="/author" class="h-card">Author Name</a>
</body>
</html>

+ 22
- 0
tests/data/feed.example.com/short-list-of-hentrys-with-h-card View File

@ -0,0 +1,22 @@
HTTP/1.1 200 OK
Server: Apache
Date: Wed, 09 Dec 2015 03:29:14 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
<html>
<head>
<title>Test</title>
</head>
<body>
<ul>
<li class="h-entry">
<a href="/1" class="u-url p-name">One</a>
</li>
</ul>
<a href="/author" class="h-card">Author Name</a>
</body>
</html>

+ 33
- 0
tests/data/feed.example.com/top-level-h-feed View File

@ -0,0 +1,33 @@
HTTP/1.1 200 OK
Server: Apache
Date: Wed, 09 Dec 2015 03:29:14 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
<html>
<head>
<title>Test</title>
</head>
<body>
<div class="h-feed">
<a href="/author" class="p-author h-card">Author Name</a>
<ul>
<li class="h-entry">
<a href="/1" class="u-url p-name">One</a>
</li>
<li class="h-entry">
<a href="/2" class="u-url p-name">Two</a>
</li>
<li class="h-entry">
<a href="/3" class="u-url p-name">Three</a>
</li>
<li class="h-entry">
<a href="/4" class="u-url p-name">Four</a>
</li>
</ul>
</div>
</body>
</html>

Loading…
Cancel
Save