From 42f536a4c7ab4d7660ccefb1dd50fc9f0004e766 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 4 Jan 2017 14:06:41 +0100
Subject: [PATCH] Fix tests.

---
 test/test_files/bar baz.html.ignoring | 8 +-------
 test/test_files/feed.xml.ignoring     | 8 ++++----
 test/test_files/foo.html.ignoring     | 8 +-------
 test/test_files/index.html.ignoring   | 8 +-------
 test/test_files/test.html.ignoring    | 8 +-------
 5 files changed, 8 insertions(+), 32 deletions(-)

diff --git a/test/test_files/bar baz.html.ignoring b/test/test_files/bar baz.html.ignoring
index b4167b7..59c5996 100644
--- a/test/test_files/bar baz.html.ignoring	
+++ b/test/test_files/bar baz.html.ignoring	
@@ -1,6 +1,4 @@
 <!DOCTYPE html>
-<html>
-<head>
 <meta charset="UTF-8">
 <style type="text/css">
 h1 { font-size: 2em; }
@@ -13,8 +11,6 @@ header h1 { margin-bottom: 0.1em; }
 header p { margin: 0; }
 </style>
 <title>Yet another blog – foo</title>
-</head>
-<body>
 <a href="index.html">Yet another blog</a>
 <article>
 <header>
@@ -25,6 +21,4 @@ header p { margin: 0; }
 <p>bar</p>
 <h3 id="bar-1">bar</h3>
 <p>bar</p>
-</article>
-</body>
-</html>
\ No newline at end of file
+</article>
\ No newline at end of file
diff --git a/test/test_files/feed.xml.ignoring b/test/test_files/feed.xml.ignoring
index 364d700..7289ec6 100644
--- a/test/test_files/feed.xml.ignoring
+++ b/test/test_files/feed.xml.ignoring
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <feed xmlns="http://www.w3.org/2005/Atom">
-<link href="http://example.org/" />
+<link href="http://example.org/" rel="alternate" type="text/html" />
 <link href="http://example.org/feed.xml" rel="self" />
 <title type="html">Yet another blog</title>
 <author><name>Joe Sixpack</name></author>
@@ -12,7 +12,7 @@
 <id>urn:uuid:IGNORE</id>
 <updated>IGNORE</updated>
 <published>IGNORE</published>
-<link href="http://example.org/test.html" />
+<link href="http://example.org/test.html" rel="alternate" type="text/html" />
 <content type="html">
 &lt;p&gt;foo&lt;/p&gt;
 &lt;h2 id=&quot;bar&quot;&gt;bar&lt;/h2&gt;
@@ -25,7 +25,7 @@
 <id>urn:uuid:IGNORE</id>
 <updated>IGNORE</updated>
 <published>IGNORE</published>
-<link href="http://example.org/bar%20baz.html" />
+<link href="http://example.org/bar%20baz.html" rel="alternate" type="text/html" />
 <content type="html">
 &lt;h2 id=&quot;bar&quot;&gt;bar&lt;/h2&gt;
 &lt;p&gt;bar&lt;/p&gt;
@@ -39,7 +39,7 @@
 <id>urn:uuid:IGNORE</id>
 <updated>IGNORE</updated>
 <published>IGNORE</published>
-<link href="http://example.org/foo.html" />
+<link href="http://example.org/foo.html" rel="alternate" type="text/html" />
 <content type="html">
 &lt;p&gt;this text contains some special characters: /;%&#x27;&amp;quot;&amp;gt;&amp;lt;&amp;amp;äöüß&lt;/p&gt;
 &lt;h2 id=&quot;some-sub-heading&quot;&gt;some sub-heading&lt;/h2&gt;
diff --git a/test/test_files/foo.html.ignoring b/test/test_files/foo.html.ignoring
index ba00446..de2d406 100644
--- a/test/test_files/foo.html.ignoring
+++ b/test/test_files/foo.html.ignoring
@@ -1,6 +1,4 @@
 <!DOCTYPE html>
-<html>
-<head>
 <meta charset="UTF-8">
 <style type="text/css">
 h1 { font-size: 2em; }
@@ -13,8 +11,6 @@ header h1 { margin-bottom: 0.1em; }
 header p { margin: 0; }
 </style>
 <title>Yet another blog – a title with some nasty characters: &amp;&lt;&gt;&quot;&#x27; %BODY%</title>
-</head>
-<body>
 <a href="index.html">Yet another blog</a>
 <article>
 <header>
@@ -26,6 +22,4 @@ header p { margin: 0; }
 <p>and more than one paragraph</p>
 <h2 id="another-sub-heading">another sub-heading</h2>
 <p>note that should be ignored but \ should give a backlash</p>
-</article>
-</body>
-</html>
\ No newline at end of file
+</article>
\ No newline at end of file
diff --git a/test/test_files/index.html.ignoring b/test/test_files/index.html.ignoring
index 54b4172..8643e6f 100644
--- a/test/test_files/index.html.ignoring
+++ b/test/test_files/index.html.ignoring
@@ -1,20 +1,14 @@
 <!DOCTYPE html>
-<html>
-<head>
 <meta charset="UTF-8">
 <style type="text/css">
 h1 { font-size: 2em; }
 </style>
 <link rel="alternate" type="application/rss+xml" title="atom feed" href="feed.xml" />
 <title>Yet another blog</title>
-</head>
-<body>
 <h1>Yet another blog</h1>
 <p><a href="feed.xml">feed</a></p>
 <ul>
 <li><a href="foo.html">a title with some nasty characters: &amp;&lt;&gt;&quot;' %BODY%</a> (<time>IGNORE</time>)</li>
 <li><a href="bar%20baz.html">foo</a> (<time>IGNORE</time>)</li>
 <li><a href="test.html">foo <em>bar</em> <strong>baz</strong></a> (<time>IGNORE</time>)</li>
-</ul>
-</body>
-</html>
\ No newline at end of file
+</ul>
\ No newline at end of file
diff --git a/test/test_files/test.html.ignoring b/test/test_files/test.html.ignoring
index 454343f..fbdf75e 100644
--- a/test/test_files/test.html.ignoring
+++ b/test/test_files/test.html.ignoring
@@ -1,6 +1,4 @@
 <!DOCTYPE html>
-<html>
-<head>
 <meta charset="UTF-8">
 <style type="text/css">
 h1 { font-size: 2em; }
@@ -13,8 +11,6 @@ header h1 { margin-bottom: 0.1em; }
 header p { margin: 0; }
 </style>
 <title>Yet another blog – foo bar baz</title>
-</head>
-<body>
 <a href="index.html">Yet another blog</a>
 <article>
 <header>
@@ -24,6 +20,4 @@ header p { margin: 0; }
 <p>foo</p>
 <h2 id="bar">bar</h2>
 <p>baz</p>
-</article>
-</body>
-</html>
\ No newline at end of file
+</article>
\ No newline at end of file
-- 
2.30.2