mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 16:44:43 +00:00
Add html5 tests.
This commit is contained in:
parent
d06c43d470
commit
4a04ff3224
4 changed files with 52 additions and 0 deletions
7
tests/checker/data/html5.html
Normal file
7
tests/checker/data/html5.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!-- new html5 tags with links -->
|
||||
<audio src=file.html>
|
||||
<button formaction=file.html>
|
||||
<html manifest=file.html>
|
||||
<source src=file.html>
|
||||
<track src=file.html>
|
||||
<video src=file.html>
|
||||
35
tests/checker/data/html5.html.result
Normal file
35
tests/checker/data/html5.html.result
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
url file://%(curdir)s/%(datadir)s/html5.html
|
||||
cache key file://%(curdir)s/%(datadir)s/html5.html
|
||||
real url file://%(curdir)s/%(datadir)s/html5.html
|
||||
name %(datadir)s/html5.html
|
||||
valid
|
||||
|
||||
url file.html
|
||||
cache key file://%(curdir)s/%(datadir)s/file.html
|
||||
real url file://%(curdir)s/%(datadir)s/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
cache key file://%(curdir)s/%(datadir)s/file.html
|
||||
real url file://%(curdir)s/%(datadir)s/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
cache key file://%(curdir)s/%(datadir)s/file.html
|
||||
real url file://%(curdir)s/%(datadir)s/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
cache key file://%(curdir)s/%(datadir)s/file.html
|
||||
real url file://%(curdir)s/%(datadir)s/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
cache key file://%(curdir)s/%(datadir)s/file.html
|
||||
real url file://%(curdir)s/%(datadir)s/file.html
|
||||
valid
|
||||
|
||||
url file.html (cached)
|
||||
cache key file://%(curdir)s/%(datadir)s/file.html
|
||||
real url file://%(curdir)s/%(datadir)s/file.html
|
||||
valid
|
||||
|
|
@ -27,3 +27,6 @@ class TestMisc (LinkCheckTest):
|
|||
|
||||
def test_misc (self):
|
||||
self.file_test("misc.html")
|
||||
|
||||
def test_html5 (self):
|
||||
self.file_test("html5.html")
|
||||
|
|
|
|||
|
|
@ -172,6 +172,13 @@ parsetests = [
|
|||
#("""<td a="b></td>\na""", """<td a="b"></td>\na"""),
|
||||
#("""<a b="c><a b="c>\n""", """<a b="c"><a b="c">\n"""),
|
||||
#("""<td a="b c="d"></td>\n""", """<td a="b" c="d"></td>\n"""),
|
||||
# HTML5 tags
|
||||
("""<audio src=bla>""", """<audio src="bla">"""),
|
||||
("""<button formaction=bla>""", """<button formaction="bla">"""),
|
||||
("""<html manifest=bla>""", """<html manifest="bla">"""),
|
||||
("""<source src=bla>""", """<source src="bla">"""),
|
||||
("""<track src=bla>""", """<track src="bla">"""),
|
||||
("""<video src=bla>""", """<video src="bla">"""),
|
||||
]
|
||||
|
||||
flushtests = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue