summaryrefslogtreecommitdiff
path: root/tests/end2end/data/hints/html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/data/hints/html')
-rw-r--r--tests/end2end/data/hints/html/README.md2
-rw-r--r--tests/end2end/data/hints/html/invisible.html16
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/end2end/data/hints/html/README.md b/tests/end2end/data/hints/html/README.md
index 2a6e97c24..5bbaecb4a 100644
--- a/tests/end2end/data/hints/html/README.md
+++ b/tests/end2end/data/hints/html/README.md
@@ -3,3 +3,5 @@ Tests in this directory are automatically picked up by `test_hints` in
They need to contain a special `<!-- target: foo.html -->` comment which
specifies where the hint in it will point to, and will then test that.
+
+With `<!-- target: null -->`, the page is expected to not generate any hints.
diff --git a/tests/end2end/data/hints/html/invisible.html b/tests/end2end/data/hints/html/invisible.html
new file mode 100644
index 000000000..d382c80fa
--- /dev/null
+++ b/tests/end2end/data/hints/html/invisible.html
@@ -0,0 +1,16 @@
+<!-- target: null -->
+
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Invisible links</title>
+ </head>
+ <body>
+ <p>None of those invisible links should get a hint.</p>
+ <a href="/data/hello.txt" style="visibility: hidden">visibility: hidden</a>
+ <a href="/data/hello.txt" style="display: none">display: none</a>
+ <a href="/data/hello.txt" style="opacity: 0">opacity: 0</a>
+ </body>
+</html>