1#!/usr/bin/perl -w # -*- perl -*- 2 3BEGIN { 4 require "./t/pod2html-lib.pl"; 5} 6 7END { 8 rem_test_dir(); 9} 10 11use strict; 12use Cwd; 13use Test::More tests => 1; 14 15SKIP: { 16 my $output = make_test_dir(); 17 skip "$output", 1 if $output; 18 19 my $cwd = Pod::Html::_unixify(cwd()); 20 21 convert_n_test("crossref", "cross references", 22 "--podpath=t:testdir/test.lib", 23 "--podroot=$cwd", 24 "--htmldir=$cwd", 25 "--quiet", 26 ); 27} 28 29__DATA__ 30<?xml version="1.0" ?> 31<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 32<html xmlns="http://www.w3.org/1999/xhtml"> 33<head> 34<title>htmlcrossref - Test HTML cross reference links</title> 35<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 36<link rev="made" href="mailto:[PERLADMIN]" /> 37</head> 38 39<body> 40 41 42 43<ul id="index"> 44 <li><a href="#NAME">NAME</a></li> 45 <li><a href="#LINKS">LINKS</a></li> 46 <li><a href="#TARGETS">TARGETS</a> 47 <ul> 48 <li><a href="#section1">section1</a></li> 49 </ul> 50 </li> 51</ul> 52 53<h1 id="NAME">NAME</h1> 54 55<p>htmlcrossref - Test HTML cross reference links</p> 56 57<h1 id="LINKS">LINKS</h1> 58 59<p><a href="#section1">"section1"</a></p> 60 61<p><a href="./htmllink.html#section-2">"section 2" in htmllink</a></p> 62 63<p><a href="#item1">"item1"</a></p> 64 65<p><a href="#non-existent-section">"non existent section"</a></p> 66 67<p><a href="../testdir/test.lib/var-copy.html">var-copy</a></p> 68 69<p><a href="../testdir/test.lib/var-copy.html#pod">"$"" in var-copy</a></p> 70 71<p><code>var-copy</code></p> 72 73<p><code>var-copy/$"</code></p> 74 75<p><a href="../testdir/test.lib/podspec-copy.html#First">"First:" in podspec-copy</a></p> 76 77<p><code>podspec-copy/First:</code></p> 78 79<p><a>notperldoc</a></p> 80 81<h1 id="TARGETS">TARGETS</h1> 82 83<h2 id="section1">section1</h2> 84 85<p>This is section one.</p> 86 87<dl> 88 89<dt id="item1">item1 </dt> 90<dd> 91 92<p>This is item one.</p> 93 94</dd> 95</dl> 96 97 98</body> 99 100</html> 101 102 103