html test files added

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@233 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2001-02-20 23:56:47 +00:00
parent 6af5fad23d
commit c005ce79d1
8 changed files with 84 additions and 0 deletions

8
test/html/file.html Normal file
View file

@ -0,0 +1,8 @@
<a href="http.html">relative url</a>
<a href="http.html#isnix">bad anchor</a>
<a href="http.html#iswas">good anchor</a>
<a href="file:///etc/group">good file</a>
<a href="file://etc/group">bad file</a>
<a href="file:/etc/group">good file</a>
<a href="file:etc/group">bad file</a>
<a href="file:/etc/">good dir</a>

5
test/html/frames.html Normal file
View file

@ -0,0 +1,5 @@
<!-- frame src urls -->
<frameset border="0" frameborder="0" framespacing="0">
<frame name="top" src="test1.html" frameborder="0">
<frame name="bottom" src="test2.html" frameborder="0">
</frameset>

5
test/html/ftp.html Normal file
View file

@ -0,0 +1,5 @@
<a href="ftp:/ftp.debian.org/pub"> <!-- ftp one slash -->
<a href="ftp://ftp.debian.org/pub"> <!-- ftp two slashes -->
<a href="ftp://ftp.debian.org//pub"> <!-- ftp two dir slashes -->
<a href="ftp://ftp.debian.org////////pub"> <!-- ftp many dir slashes -->
<a href="ftp:///ftp.debian.org/pub"> <!-- ftp three slashes -->

20
test/html/http.html Normal file
View file

@ -0,0 +1,20 @@
Just some HTTP links
<a href="http://www.garantiertnixgutt.bla">bad url</a>
<a href="http://www.heise.de">ok</a>
<a href="http:/www.heise.de">one slash</a>
<a href="http:www.heise.de">no slash</a>
<a href="http://">no url</a>
<a href="http:/">no url, one slash</a>
<a href="http:">no url, no slash</a>
<a href="http://www.blubb.de/stalter&sohn">unquoted ampersand</a>
<a name="iswas">anchor for anchor.html</a>
<a href=http://slashdot.org/>unquoted</a>
<a href="http://fsinfo.cs.uni-sb.de/~calvin/software/#isnix"
>invalid anchor</a>
<a href="HtTP://WWW.hEIsE.DE">should be cached</a>
<a href="HTTP://WWW.HEISE.DE">should be cached</a>
<!-- <a href=http://nocheckin> no check because of comment -->
<a href=illegalquote1">no beginning quote</a>
<a href="illegalquote2>no ending quote</a>
<!-- check the parser at end of file -->
<a href="g

1
test/html/https.html Normal file
View file

@ -0,0 +1 @@
<a href="https://sourceforge.net/">https</a>

20
test/html/mail.html Normal file
View file

@ -0,0 +1,20 @@
<!-- extra mail checking -->
<html><head></head>
<body>
<!-- legal -->
<a href=mailto:calvin@LocalHost?subject=Hallo&to=michi>1</a>
<a href="mailto:Dude <calvin@studcs.uni-sb.de> , Killer <calvin@cs.uni-sb.de>?subject=bla">2</a>
<a href="mailto:Bastian Kleineidam <calvin@studcs.uni-sb.de>?bcc=jsmith%40company.com">3</a>
<a href="mailto:Bastian Kleineidam <calvin@studcs.uni-sb.de>">4</a>
<a href="mailto:">6</a>
<a href="mailto:o'hara@cs.uni-sb.de">5</a>
<a href="mailto:?to=calvin@studcs.uni-sb.de?subject=blubb">...</a>
<a href="mailto:jan@jan-dittberner.de?subject=test">...</a>
<!-- illegal -->
<!-- contains non-quoted characters -->
<a href="mailto:a@d?subject=äöü">5</a>
<a href="mailto:calvin@cs.uni-sb.de?subject=Halli hallo">_</a>
<!-- ? extension forbidden in <> construct -->
<a href="mailto:Bastian Kleineidam <calvin@host1?foo=bar>">3</a>
</body>
</html>

6
test/html/misc.html Normal file
View file

@ -0,0 +1,6 @@
<!-- meta url -->
<meta http-equiv="refresh" content="5; url=http://localhost">
<a href="hutzli:nixgutt">bad scheme</a>
<a href="javascript:loadthis()">javascript url</a>
<a href="telnet:localhost"> <!-- telnet to localhost -->
<a href="telnet:"> <!-- telnet without host -->

19
test/html/news.html Normal file
View file

@ -0,0 +1,19 @@
<!-- news testing -->
<a href="news:comp.os.linux.misc">
<!-- snews -->
<a href="snews:de.comp.os.unix.linux.misc">
<!-- no group -->
<a href="news:">
<!-- illegal syntax -->
<a href="news:§$%&/´`(§%">
<!-- nttp scheme with host -->
<a href="nntp://news.rz.uni-sb.de/comp.lang.python">
<!-- article span -->
<a href="nntp://news.rz.uni-sb.de/comp.lang.python/1-5">
<!-- article number -->
<a href="nntp://news.rz.uni-sb.de/EFGJG4.7A@deshaw.com">
<!-- host but no group -->
<a href="nntp://news.rz.uni-sb.de/">
<!-- article span -->
<a href="news:comp.lang.python/1-5">