mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-01 19:34:43 +00:00
Fix localhost tests.
This commit is contained in:
parent
de652d8138
commit
2aea1ef1e5
4 changed files with 48 additions and 42 deletions
|
|
@ -1,21 +1,21 @@
|
|||
Just some HTTP links
|
||||
<a b=c "boo" href="http://www.garantiertnixgutt.bla/">bad url</a>
|
||||
<a href="http://localhost:8001/">ok</a>
|
||||
<a href="http:/localhost:8001/">one slash</a>
|
||||
<a href="http:localhost:8001/">no slash</a>
|
||||
<a href="//localhost:8001/">no scheme</a>
|
||||
<a href="http://www.example.com/">ok</a>
|
||||
<a href="http:/www.example.com/">one slash</a>
|
||||
<a href="http:www.example.com/">no slash</a>
|
||||
<a href="//www.example.com/">no scheme</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://localhost:8001/stalter&sohn">unquoted ampersand</a>
|
||||
<a href="/stalter&sohn">unquoted ampersand</a>
|
||||
<a href=http://slashdot.org/>unquoted</a>
|
||||
<a href="HtTP://LoCAlHOst:8001/">should be cached</a>
|
||||
<a href="HTTP://LOCALHOST:8001/">should be cached</a>
|
||||
<a href="HtTP://WwW.ExaMple.cOm/">should be cached</a>
|
||||
<a href="HTTP://WWW.EXAMPLE.COM/">should be cached</a>
|
||||
<!-- check cache key with query -->
|
||||
<a href="http://localhost:8001/?d=directory&p=page">should not be cached</a>
|
||||
<a href="http://localhost:8001/?d=directory&p=page1">should not be cached</a>
|
||||
<a href="/?d=directory&p=page">should not be cached</a>
|
||||
<a href="/?d=directory&p=page1">should not be cached</a>
|
||||
<!-- entities -->
|
||||
<a href="http://localhost:8001/?quoted=ü">html entities</a>
|
||||
<a href="/?quoted=ü">html entities</a>
|
||||
<!-- quoting test...
|
||||
<a href=""></a>
|
||||
-->
|
||||
|
|
@ -34,7 +34,7 @@ Just some HTTP links
|
|||
<object classid="clsid:12345" codebase="http://example.org/foo/ #a=1,2,3">
|
||||
|
||||
<!-- <a href=http://nocheckin> no check because of comment -->
|
||||
<a href=http://localhost:8001/">no beginning quote</a>
|
||||
<a href="http://localhost:8001/>no ending quote</a>
|
||||
<a href=http://www.example.com/">no beginning quote</a>
|
||||
<a href="http://www.example.com/>no ending quote</a>
|
||||
<!-- check the parser at end of file -->
|
||||
<a href="g
|
||||
|
|
@ -36,28 +36,30 @@ real url http://www.garantiertnixgutt.bla/
|
|||
name bad url
|
||||
error
|
||||
|
||||
url http://localhost:%(port)d/
|
||||
cache key http://localhost:%(port)d/
|
||||
real url http://localhost:%(port)d/
|
||||
url http://www.example.com/
|
||||
cache key http://www.example.com/
|
||||
real url http://www.iana.org/domains/example/
|
||||
name ok
|
||||
info Redirected to `http://www.iana.org/domains/example/'.
|
||||
valid
|
||||
|
||||
url http:/localhost:%(port)d/
|
||||
cache key http:///localhost%%3A%(port)d/
|
||||
real url http:///localhost%%3A%(port)d/
|
||||
url http:/www.example.com/
|
||||
cache key http:///www.example.com/
|
||||
real url http:///www.example.com/
|
||||
name one slash
|
||||
error
|
||||
|
||||
url http:localhost:%(port)d/ (cached)
|
||||
cache key http:///localhost%%3A%(port)d/
|
||||
real url http:///localhost%%3A%(port)d/
|
||||
url http:www.example.com/ (cached)
|
||||
cache key http:///www.example.com/
|
||||
real url http:///www.example.com/
|
||||
name no slash
|
||||
error
|
||||
|
||||
url //localhost:%(port)d/ (cached)
|
||||
cache key http://localhost:%(port)d/
|
||||
real url http://localhost:%(port)d/
|
||||
url //www.example.com/ (cached)
|
||||
cache key http://www.example.com/
|
||||
real url http://www.example.com/
|
||||
name no scheme
|
||||
info Redirected to `http://www.iana.org/domains/example/'.
|
||||
valid
|
||||
|
||||
url http://
|
||||
|
|
@ -78,7 +80,7 @@ real url http://
|
|||
name no url, no slash
|
||||
error
|
||||
|
||||
url http://localhost:%(port)d/stalter&sohn
|
||||
url /stalter&sohn
|
||||
cache key http://localhost:%(port)d/stalter%%26sohn
|
||||
real url http://localhost:%(port)d/stalter%%26sohn
|
||||
name unquoted ampersand
|
||||
|
|
@ -90,31 +92,33 @@ real url http://slashdot.org/
|
|||
name unquoted
|
||||
valid
|
||||
|
||||
url HtTP://LoCAlHOst:%(port)d/ (cached)
|
||||
cache key http://localhost:%(port)d/
|
||||
real url http://localhost:%(port)d/
|
||||
url HtTP://WwW.ExaMple.cOm/ (cached)
|
||||
cache key http://www.example.com/
|
||||
real url http://www.example.com/
|
||||
name should be cached
|
||||
info Redirected to `http://www.iana.org/domains/example/'.
|
||||
valid
|
||||
|
||||
url HTTP://LOCALHOST:%(port)d/ (cached)
|
||||
cache key http://localhost:%(port)d/
|
||||
real url http://localhost:%(port)d/
|
||||
url HTTP://WWW.EXAMPLE.COM/ (cached)
|
||||
cache key http://www.example.com/
|
||||
real url http://www.example.com/
|
||||
name should be cached
|
||||
info Redirected to `http://www.iana.org/domains/example/'.
|
||||
valid
|
||||
|
||||
url http://localhost:%(port)d/?d=directory&p=page
|
||||
url /?d=directory&p=page
|
||||
cache key http://localhost:%(port)d/?d=directory&p=page
|
||||
real url http://localhost:%(port)d/?d=directory&p=page
|
||||
name should not be cached
|
||||
valid
|
||||
|
||||
url http://localhost:%(port)d/?d=directory&p=page1
|
||||
url /?d=directory&p=page1
|
||||
cache key http://localhost:%(port)d/?d=directory&p=page1
|
||||
real url http://localhost:%(port)d/?d=directory&p=page1
|
||||
name should not be cached
|
||||
valid
|
||||
|
||||
url http://localhost:%(port)d/?quoted=ü
|
||||
url /?quoted=ü
|
||||
cache key http://localhost:%(port)d/?quoted=%%C3%%BC
|
||||
real url http://localhost:%(port)d/?quoted=%%C3%%BC
|
||||
name html entities
|
||||
|
|
@ -127,8 +131,9 @@ baseurl http://example.org/foo/%%20#a%%3D1%%2C2%%2C3
|
|||
warning Clsid URL ignored.
|
||||
valid
|
||||
|
||||
url http://localhost:%(port)d/ (cached)
|
||||
cache key http://localhost:%(port)d/
|
||||
real url http://localhost:%(port)d/
|
||||
url http://www.example.com/ (cached)
|
||||
cache key http://www.example.com/
|
||||
real url http://www.example.com/
|
||||
name no beginning quote
|
||||
info Redirected to `http://www.iana.org/domains/example/'.
|
||||
valid
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!-- meta -->
|
||||
<meta http-equiv="refresh" content="5; url=http://localhost:8001/">
|
||||
<meta http-equiv="refresh" content="5; url=http://www.example.com/">
|
||||
<meta rel="SHORTCUT ICON" href="favicon.ico">
|
||||
<meta rel="ICON" href="favicon.ico">
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,11 @@ real url file://%(curdir)s/%(datadir)s/misc.html
|
|||
name %(datadir)s/misc.html
|
||||
valid
|
||||
|
||||
url http://localhost:%(port)d/
|
||||
cache key http://localhost:%(port)d/
|
||||
real url http://localhost:%(port)d/
|
||||
error
|
||||
url http://www.example.com/
|
||||
cache key http://www.example.com/
|
||||
real url http://www.iana.org/domains/example/
|
||||
info Redirected to `http://www.iana.org/domains/example/'.
|
||||
valid
|
||||
|
||||
url favicon.ico
|
||||
cache key file://%(curdir)s/%(datadir)s/favicon.ico
|
||||
|
|
|
|||
Loading…
Reference in a new issue