Skip to content

Commit

Permalink
Add GUI test to ensure there is always a theme applied if JS is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 3, 2024
1 parent c6c09d8 commit 42b2d1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/rustdoc-gui/javascript-disabled.goml
Expand Up @@ -3,4 +3,9 @@
javascript: false

go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
show-text: true
assert-css: (".sub", {"display": "none"})

// Even though JS is disabled, we should still have themes applied. Links are never black-colored
// if styles are applied so we check that they are not.
assert-css-false: ("a.src", {"color": "#000"})

0 comments on commit 42b2d1a

Please sign in to comment.