Skip to content

Commit 8f9d93b

Browse files
Add GUI test to ensure there is always a theme applied if JS is disabled
1 parent 2edc54c commit 8f9d93b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/rustdoc-gui/javascript-disabled.goml

+5
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33
javascript: false
44

55
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
6+
show-text: true
67
assert-css: (".sub", {"display": "none"})
8+
9+
// Even though JS is disabled, we should still have themes applied. Links are never black-colored
10+
// if styles are applied so we check that they are not.
11+
assert-css-false: ("a.src", {"color": "#000"})

0 commit comments

Comments
 (0)