linkchecker/tests/checker/data/urlencoding_anchor.html.file.result
Nathan Arthur 2d1bf6ef98 Add tests for encoded anchors for file: and http:
I started with a test of urlencoded anchors, assuming at the URL might
have a urlencoded anchor, but the actual anchor in the HTML would NOT be
urlencoded.
2022-10-03 19:33:05 +01:00

42 lines
2.4 KiB
Text

url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html
valid
url urlencoding_anchor.html#another_with_pipes_%%7C_and_parentheses_%%28and%%E2%%80%%94em-dashes%%29
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#another_with_pipes_%%7C_and_parentheses_(and%%E2%%80%%94em-dashes)
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#another_with_pipes_%%7C_and_parentheses_(and%%E2%%80%%94em-dashes)
name Distinct encoded anchor
valid
url urlencoding_anchor.html#bad
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#bad
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#bad
name Bad anchor
warning Anchor `bad' (decoded: `bad') not found. Available anchors: `another_with_pipes_|_and_parentheses_(and—em-dashes)', `good', `partially_|_(encoded_em—dash)', `with_pipes_|_and_parentheses_(and—em-dashes)'.
valid
url urlencoding_anchor.html#bad_|_%%28and%%E2%%80%%94em-dashes%%29
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#bad_%%7C_(and%%E2%%80%%94em-dashes)
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#bad_%%7C_(and%%E2%%80%%94em-dashes)
name Bad encoded anchor, partially encoded
warning Anchor `bad_%%7C_(and%%E2%%80%%94em-dashes)' (decoded: `bad_|_(and—em-dashes)') not found. Available anchors: `another_with_pipes_|_and_parentheses_(and—em-dashes)', `good', `partially_|_(encoded_em—dash)', `with_pipes_|_and_parentheses_(and—em-dashes)'.
valid
url urlencoding_anchor.html#good
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#good
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#good
name Good anchor
valid
url urlencoding_anchor.html#partially_%%7C_(encoded_em—dash)
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#partially_%%7C_(encoded_em%%E2%%80%%94dash)
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#partially_%%7C_(encoded_em%%E2%%80%%94dash)
name Partially-encoded anchor, for testing
valid
url urlencoding_anchor.html#with_pipes_|_and_parentheses_(and—em-dashes)
cache key file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#with_pipes_%%7C_and_parentheses_(and%%E2%%80%%94em-dashes)
real url file://%(curdir)s/%(datadir)s/urlencoding_anchor.html#with_pipes_%%7C_and_parentheses_(and%%E2%%80%%94em-dashes)
name Non-encoded anchor
valid