This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #41698] [PATCH] v5.8.8 pod2html -- Add <div>..</div> around the outputted INDEX...
[perl5.git] / lib / Pod / t / htmllink.t
1 #!/usr/bin/perl -w                                         # -*- perl -*-
2
3 BEGIN {
4     chdir 't' if -d 't';
5     unshift @INC, '../lib';
6     unshift @INC, '../lib/Pod/t';
7     require "pod2html-lib.pl";
8 }
9
10 use strict;
11 use Test::More tests => 1;
12
13 convert_n_test("htmllink", "html links");
14
15 __DATA__
16 <?xml version="1.0" ?>
17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
18 <html xmlns="http://www.w3.org/1999/xhtml">
19 <head>
20 <title>htmllink - Test HTML links</title>
21 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
22 <link rev="made" href="mailto:[PERLADMIN]" />
23 </head>
24
25 <body style="background-color: white">
26
27
28 <!-- INDEX BEGIN -->
29 <div name="index">
30 <p><a name="__index__"></a></p>
31
32 <ul>
33
34         <li><a href="#name">NAME</a></li>
35         <li><a href="#links">LINKS</a></li>
36         <li><a href="#targets">TARGETS</a></li>
37         <ul>
38
39                 <li><a href="#section1">section1</a></li>
40                 <li><a href="#section_2">section 2</a></li>
41                 <li><a href="#section_three">section three</a></li>
42         </ul>
43
44 </ul>
45
46 <hr name="index" />
47 </div>
48 <!-- INDEX END -->
49
50 <p>
51 </p>
52 <h1><a name="name">NAME</a></h1>
53 <p>htmllink - Test HTML links</p>
54 <p>
55 </p>
56 <hr />
57 <h1><a name="links">LINKS</a></h1>
58 <p><a href="#section1">section1</a></p>
59 <p><a href="#section_2">section 2</a></p>
60 <p><a href="#section_three">section three</a></p>
61 <p><a href="#item_item1">item1</a></p>
62 <p><a href="#item_item_2">item 2</a></p>
63 <p><a href="#item_item_three">item three</a></p>
64 <p><a href="#section1">section1</a></p>
65 <p><a href="#section_2">section 2</a></p>
66 <p><a href="#section_three">section three</a></p>
67 <p><a href="#item_item1">item1</a></p>
68 <p><a href="#item_item_2">item 2</a></p>
69 <p><a href="#item_item_three">item three</a></p>
70 <p><a href="#section1">section1</a></p>
71 <p><a href="#section_2">section 2</a></p>
72 <p><a href="#section_three">section three</a></p>
73 <p><a href="#item_item1">item1</a></p>
74 <p><a href="#item_item_2">item 2</a></p>
75 <p><a href="#item_item_three">item three</a></p>
76 <p><a href="#section1">text</a></p>
77 <p><a href="#section_2">text</a></p>
78 <p><a href="#section_three">text</a></p>
79 <p><a href="#item_item1">text</a></p>
80 <p><a href="#item_item_2">text</a></p>
81 <p><a href="#item_item_three">text</a></p>
82 <p><a href="#section1">text</a></p>
83 <p><a href="#section_2">text</a></p>
84 <p><a href="#section_three">text</a></p>
85 <p><a href="#item_item1">text</a></p>
86 <p><a href="#item_item_2">text</a></p>
87 <p><a href="#item_item_three">text</a></p>
88 <p><a href="#section1">text</a></p>
89 <p><a href="#section_2">text</a></p>
90 <p><a href="#section_three">text</a></p>
91 <p><a href="#item_item1">text</a></p>
92 <p><a href="#item_item_2">text</a></p>
93 <p><a href="#item_item_three">text</a></p>
94 <p>
95 </p>
96 <hr />
97 <h1><a name="targets">TARGETS</a></h1>
98 <p>
99 </p>
100 <h2><a name="section1">section1</a></h2>
101 <p>This is section one.</p>
102 <p>
103 </p>
104 <h2><a name="section_2">section 2</a></h2>
105 <p>This is section two.</p>
106 <p>
107 </p>
108 <h2><a name="section_three">section three</a></h2>
109 <p>This is section three.</p>
110 <dl>
111 <dt><strong><a name="item_item1">item1</a></strong>
112
113 <dd>
114 <p>This is item one.</p>
115 </dd>
116 </li>
117 <dt><strong><a name="item_item_2">item 2</a></strong>
118
119 <dd>
120 <p>This is item two.</p>
121 </dd>
122 </li>
123 <dt><strong><a name="item_item_three">item three</a></strong>
124
125 <dd>
126 <p>This is item three.</p>
127 </dd>
128 </li>
129 </dl>
130
131 </body>
132
133 </html>