aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-11 04:40:35 +0700
committerShulhan <ms@kilabit.info>2026-02-11 21:45:06 +0700
commitded0c89eea2ff0193f7916db35e3f600d24842ff (patch)
tree54276667ae8aa557252236327d78b740751d8ca0
parent61eb5351087be894a4bfeb71c99346b8065bb7f1 (diff)
downloadjarink-ded0c89eea2ff0193f7916db35e3f600d24842ff.tar.xz
brokenlinks: test links that wrapped by other elements
This is to see the behaviour of [Node.Descendants] when traversing the element recursively.
-rw-r--r--brokenlinks/testdata/exp_cache.json6
-rw-r--r--brokenlinks/testdata/web/index.html10
-rw-r--r--brokenlinks/testdata/web/page2/index.html10
3 files changed, 19 insertions, 7 deletions
diff --git a/brokenlinks/testdata/exp_cache.json b/brokenlinks/testdata/exp_cache.json
index bb8fa94..e80202f 100644
--- a/brokenlinks/testdata/exp_cache.json
+++ b/brokenlinks/testdata/exp_cache.json
@@ -2,17 +2,17 @@
"scanned_links": {
"http://127.0.0.1:11900": {
"url": "http://127.0.0.1:11900",
- "size": 1141,
+ "size": 1214,
"status_code": 200
},
"http://127.0.0.1:11900/page2": {
"url": "http://127.0.0.1:11900/page2",
- "size": 410,
+ "size": 483,
"status_code": 200
},
"https://127.0.0.1:11838": {
"url": "https://127.0.0.1:11838",
- "size": 1141,
+ "size": 1214,
"status_code": 200
}
}
diff --git a/brokenlinks/testdata/web/index.html b/brokenlinks/testdata/web/index.html
index 4eaf3ed..6952dd1 100644
--- a/brokenlinks/testdata/web/index.html
+++ b/brokenlinks/testdata/web/index.html
@@ -4,8 +4,14 @@ SPDX-License-Identifier: GPL-3.0-only
-->
<html>
<body>
- <img src="/broken.png" />
- <a href="/brokenPage">Broken page</a>
+ <div>
+ <img src="/broken.png" />
+ </div>
+ <div>
+ <div>
+ <a href="/brokenPage">Broken page</a>
+ </div>
+ </div>
<img src="/gopher.png" />
<img width="200" src="" />
<a href="/page2">Page 2</a>
diff --git a/brokenlinks/testdata/web/page2/index.html b/brokenlinks/testdata/web/page2/index.html
index ae6b4ea..f75b89c 100644
--- a/brokenlinks/testdata/web/page2/index.html
+++ b/brokenlinks/testdata/web/page2/index.html
@@ -4,8 +4,14 @@ SPDX-License-Identifier: GPL-3.0-only
-->
<html>
<body>
- <img src="/broken.png" />
- <img src="broken2.png" />
+ <div>
+ <img src="/broken.png" />
+ </div>
+ <div>
+ <div>
+ <img src="broken2.png" />
+ </div>
+ </div>
<a href="broken/relative">broken relative link</a>
<a href="/">Back with absolute path</a>
<a href="../">Back with relative path</a>