aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-05-23 11:01:23 +0700
committerShulhan <ms@kilabit.info>2025-05-27 01:51:35 +0700
commitbcccb3d65bf1714bb03ef6342a85fe14e6209c51 (patch)
tree4dfe3fd89737751228a13a712897b6bc07cd2d68 /testdata
parent25c19699c84bdf77244edd1dda73652ac57376a6 (diff)
downloadjarink-bcccb3d65bf1714bb03ef6342a85fe14e6209c51.tar.xz
all: complete the first minimum working implementation
The current implementation at least cover 84% of the cases. Todo, * CLI for scan * add more test case for 100% coverage, including scan on invalid base URL, scan on invalid HTML page, scan on invalid href or src image
Diffstat (limited to 'testdata')
-rw-r--r--testdata/web/index.html1
-rw-r--r--testdata/web/page2/index.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/testdata/web/index.html b/testdata/web/index.html
index 5d85bcf..1124813 100644
--- a/testdata/web/index.html
+++ b/testdata/web/index.html
@@ -7,5 +7,6 @@ SPDX-License-Identifier: GPL-3.0-only
<img src="/broken.png" />
<a href="/brokenPage">Broken page</a>
<a href="/page2">Page 2</a>
+ <a href="https://kilabit.info/brokenPage">Broken page at kilabit.info</a>
</body>
</html>
diff --git a/testdata/web/page2/index.html b/testdata/web/page2/index.html
index 933dede..0fc7601 100644
--- a/testdata/web/page2/index.html
+++ b/testdata/web/page2/index.html
@@ -4,7 +4,10 @@ SPDX-License-Identifier: GPL-3.0-only
-->
<html>
<body>
+ <img src="/broken.png" />
<img src="broken2.png" />
<a href="broken/relative">broken relative link</a>
+ <a href="/">Back with absolute path</a>
+ <a href="../">Back with relative path</a>
</body>
</html>