Commit | Line | Data |
6e38a594 |
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 | |
bee6d115 |
13 | convert_n_test("htmllink", "html links"); |
6e38a594 |
14 | |
15 | __DATA__ |
5d15cdb2 |
16 | <?xml version="1.0" ?> |
6e38a594 |
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> |
5d15cdb2 |
21 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
6e38a594 |
22 | <link rev="made" href="mailto:" /> |
23 | </head> |
24 | |
25 | <body style="background-color: white"> |
26 | |
27 | <p><a name="__index__"></a></p> |
28 | <!-- INDEX BEGIN --> |
29 | |
30 | <ul> |
31 | |
32 | <li><a href="#name">NAME</a></li> |
33 | <li><a href="#links">LINKS</a></li> |
34 | <li><a href="#targets">TARGETS</a></li> |
35 | <ul> |
36 | |
37 | <li><a href="#section1">section1</a></li> |
38 | <li><a href="#section_2">section 2</a></li> |
39 | <li><a href="#section_three">section three</a></li> |
40 | </ul> |
41 | |
42 | </ul> |
43 | <!-- INDEX END --> |
44 | |
45 | <hr /> |
46 | <p> |
47 | </p> |
48 | <h1><a name="name">NAME</a></h1> |
49 | <p>htmllink - Test HTML links</p> |
50 | <p> |
51 | </p> |
52 | <hr /> |
53 | <h1><a name="links">LINKS</a></h1> |
54 | <p><a href="#section1">section1</a></p> |
55 | <p><a href="#section_2">section 2</a></p> |
56 | <p><a href="#section_three">section three</a></p> |
57 | <p><a href="#item_item1">item1</a></p> |
58 | <p><a href="#item_item_2">item 2</a></p> |
59 | <p><a href="#item_item_three">item three</a></p> |
60 | <p><a href="#section1">section1</a></p> |
61 | <p><a href="#section_2">section 2</a></p> |
62 | <p><a href="#section_three">section three</a></p> |
63 | <p><a href="#item_item1">item1</a></p> |
64 | <p><a href="#item_item_2">item 2</a></p> |
65 | <p><a href="#item_item_three">item three</a></p> |
66 | <p><a href="#section1">section1</a></p> |
67 | <p><a href="#section_2">section 2</a></p> |
68 | <p><a href="#section_three">section three</a></p> |
69 | <p><a href="#item_item1">item1</a></p> |
70 | <p><a href="#item_item_2">item 2</a></p> |
71 | <p><a href="#item_item_three">item three</a></p> |
72 | <p><a href="#section1">text</a></p> |
73 | <p><a href="#section_2">text</a></p> |
74 | <p><a href="#section_three">text</a></p> |
75 | <p><a href="#item_item1">text</a></p> |
76 | <p><a href="#item_item_2">text</a></p> |
77 | <p><a href="#item_item_three">text</a></p> |
78 | <p><a href="#section1">text</a></p> |
79 | <p><a href="#section_2">text</a></p> |
80 | <p><a href="#section_three">text</a></p> |
81 | <p><a href="#item_item1">text</a></p> |
82 | <p><a href="#item_item_2">text</a></p> |
83 | <p><a href="#item_item_three">text</a></p> |
84 | <p><a href="#section1">text</a></p> |
85 | <p><a href="#section_2">text</a></p> |
86 | <p><a href="#section_three">text</a></p> |
87 | <p><a href="#item_item1">text</a></p> |
88 | <p><a href="#item_item_2">text</a></p> |
89 | <p><a href="#item_item_three">text</a></p> |
90 | <p> |
91 | </p> |
92 | <hr /> |
93 | <h1><a name="targets">TARGETS</a></h1> |
94 | <p> |
95 | </p> |
96 | <h2><a name="section1">section1</a></h2> |
97 | <p>This is section one.</p> |
98 | <p> |
99 | </p> |
100 | <h2><a name="section_2">section 2</a></h2> |
101 | <p>This is section two.</p> |
102 | <p> |
103 | </p> |
104 | <h2><a name="section_three">section three</a></h2> |
105 | <p>This is section three.</p> |
106 | <dl> |
27ad5321 |
107 | <dt><strong><a name="item_item1">item1</a></strong> |
108 | |
6e38a594 |
109 | <dd> |
27ad5321 |
110 | <p>This is item one.</p> |
6e38a594 |
111 | </dd> |
27ad5321 |
112 | </li> |
113 | <dt><strong><a name="item_item_2">item 2</a></strong> |
114 | |
6e38a594 |
115 | <dd> |
27ad5321 |
116 | <p>This is item two.</p> |
6e38a594 |
117 | </dd> |
27ad5321 |
118 | </li> |
119 | <dt><strong><a name="item_item_three">item three</a></strong> |
120 | |
6e38a594 |
121 | <dd> |
27ad5321 |
122 | <p>This is item three.</p> |
6e38a594 |
123 | </dd> |
27ad5321 |
124 | </li> |
125 | </dl> |
6e38a594 |
126 | |
127 | </body> |
128 | |
129 | </html> |