summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Green <marcgreen@cpan.org>2011-06-24 12:21:42 -0400
committerMarc Green <marcgreen@cpan.org>2011-10-31 13:26:41 -0400
commit8390d18f890f32c2885e96f3bcd38af4ef34c380 (patch)
tree93c519a40c059cb9ea936ada0782b96f340bf60a
parentaa71dea9f7a17b1f65de5c46dfbb7b8bd137d432 (diff)
downloadperl-8390d18f890f32c2885e96f3bcd38af4ef34c380.tar.gz
Update test case for new Pod::Html
-rw-r--r--ext/Pod-Html/t/htmllink.t176
1 files changed, 103 insertions, 73 deletions
diff --git a/ext/Pod-Html/t/htmllink.t b/ext/Pod-Html/t/htmllink.t
index 592fef3262..9c26dbfcf2 100644
--- a/ext/Pod-Html/t/htmllink.t
+++ b/ext/Pod-Html/t/htmllink.t
@@ -14,7 +14,7 @@ __DATA__
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-<title>htmllink - Test HTML links</title>
+<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[PERLADMIN]" />
</head>
@@ -22,106 +22,136 @@ __DATA__
<body style="background-color: white">
-<!-- INDEX BEGIN -->
-<div name="index">
-<p><a name="__index__"></a></p>
-<ul>
+<ul id="index">
+ <li><a href="#NAME">NAME</a></li>
+ <li><a href="#LINKS">LINKS</a></li>
+ <li><a href="#TARGETS">TARGETS</a>
+ <ul>
+ <li><a href="#section1">section1</a></li>
+ <li><a href="#section-2">section 2</a></li>
+ <li><a href="#section-three">section three</a></li>
+ </ul>
+ </li>
+</ul>
- <li><a href="#name">NAME</a></li>
- <li><a href="#links">LINKS</a></li>
- <li><a href="#targets">TARGETS</a></li>
- <ul>
+<h1 id="NAME">NAME</h1>
- <li><a href="#section1">section1</a></li>
- <li><a href="#section_2">section 2</a></li>
- <li><a href="#section_three">section three</a></li>
- </ul>
+<p>htmllink - Test HTML links</p>
-</ul>
+<h1 id="LINKS">LINKS</h1>
-<hr name="index" />
-</div>
-<!-- INDEX END -->
+<p><a href="#section1">&quot;section1&quot;</a></p>
+
+<p><a href="#section-2">&quot;section 2&quot;</a></p>
+
+<p><a href="#section-three">&quot;section three&quot;</a></p>
+
+<p><a href="#item1">&quot;item1&quot;</a></p>
+
+<p><a href="#item-2">&quot;item 2&quot;</a></p>
+
+<p><a href="#item-three">&quot;item three&quot;</a></p>
+
+<p><a href="#section1">&quot;section1&quot;</a></p>
+
+<p><a href="#section-2">&quot;section 2&quot;</a></p>
+
+<p><a href="#section-three">&quot;section three&quot;</a></p>
+
+<p><a href="#item1">&quot;item1&quot;</a></p>
+
+<p><a href="#item-2">&quot;item 2&quot;</a></p>
+
+<p><a href="#item-three">&quot;item three&quot;</a></p>
+
+<p><a href="#section1">&quot;section1&quot;</a></p>
+
+<p><a href="#section-2">&quot;section 2&quot;</a></p>
+
+<p><a href="#section-three">&quot;section three&quot;</a></p>
+
+<p><a href="#item1">&quot;item1&quot;</a></p>
+
+<p><a href="#item-2">&quot;item 2&quot;</a></p>
+
+<p><a href="#item-three">&quot;item three&quot;</a></p>
-<p>
-</p>
-<h1><a name="name">NAME</a></h1>
-<p>htmllink - Test HTML links</p>
-<p>
-</p>
-<hr />
-<h1><a name="links">LINKS</a></h1>
-<p><a href="#section1">section1</a></p>
-<p><a href="#section_2">section 2</a></p>
-<p><a href="#section_three">section three</a></p>
-<p><a href="#item1">item1</a></p>
-<p><a href="#item_2">item 2</a></p>
-<p><a href="#item_three">item three</a></p>
-<p><a href="#section1">section1</a></p>
-<p><a href="#section_2">section 2</a></p>
-<p><a href="#section_three">section three</a></p>
-<p><a href="#item1">item1</a></p>
-<p><a href="#item_2">item 2</a></p>
-<p><a href="#item_three">item three</a></p>
-<p><a href="#section1">section1</a></p>
-<p><a href="#section_2">section 2</a></p>
-<p><a href="#section_three">section three</a></p>
-<p><a href="#item1">item1</a></p>
-<p><a href="#item_2">item 2</a></p>
-<p><a href="#item_three">item three</a></p>
<p><a href="#section1">text</a></p>
-<p><a href="#section_2">text</a></p>
-<p><a href="#section_three">text</a></p>
+
+<p><a href="#section-2">text</a></p>
+
+<p><a href="#section-three">text</a></p>
+
<p><a href="#item1">text</a></p>
-<p><a href="#item_2">text</a></p>
-<p><a href="#item_three">text</a></p>
+
+<p><a href="#item-2">text</a></p>
+
+<p><a href="#item-three">text</a></p>
+
<p><a href="#section1">text</a></p>
-<p><a href="#section_2">text</a></p>
-<p><a href="#section_three">text</a></p>
+
+<p><a href="#section-2">text</a></p>
+
+<p><a href="#section-three">text</a></p>
+
<p><a href="#item1">text</a></p>
-<p><a href="#item_2">text</a></p>
-<p><a href="#item_three">text</a></p>
+
+<p><a href="#item-2">text</a></p>
+
+<p><a href="#item-three">text</a></p>
+
<p><a href="#section1">text</a></p>
-<p><a href="#section_2">text</a></p>
-<p><a href="#section_three">text</a></p>
+
+<p><a href="#section-2">text</a></p>
+
+<p><a href="#section-three">text</a></p>
+
<p><a href="#item1">text</a></p>
-<p><a href="#item_2">text</a></p>
-<p><a href="#item_three">text</a></p>
-<p>
-</p>
-<hr />
-<h1><a name="targets">TARGETS</a></h1>
-<p>
-</p>
-<h2><a name="section1">section1</a></h2>
+
+<p><a href="#item-2">text</a></p>
+
+<p><a href="#item-three">text</a></p>
+
+<h1 id="TARGETS">TARGETS</h1>
+
+<h2 id="section1">section1</h2>
+
<p>This is section one.</p>
-<p>
-</p>
-<h2><a name="section_2">section 2</a></h2>
+
+<h2 id="section-2">section 2</h2>
+
<p>This is section two.</p>
-<p>
-</p>
-<h2><a name="section_three">section three</a></h2>
+
+<h2 id="section-three">section three</h2>
+
<p>This is section three.</p>
+
<dl>
-<dt><strong><a name="item1" class="item">item1</a></strong></dt>
+<dt id="item1">item1 </dt>
<dd>
+
<p>This is item one.</p>
-</dd>
-<dt><strong><a name="item_2" class="item">item 2</a></strong></dt>
+</dd>
+<dt id="item-2">item 2 </dt>
<dd>
+
<p>This is item two.</p>
-</dd>
-<dt><strong><a name="item_three" class="item">item three</a></strong></dt>
+</dd>
+<dt id="item-three">item three </dt>
<dd>
+
<p>This is item three.</p>
+
</dd>
</dl>
+
</body>
</html>
+
+