Skip to content

Commit

Permalink
Add regression test to ensure that even if JS is enabled but not work…
Browse files Browse the repository at this point in the history
…ing, a theme will still get applied
  • Loading branch information
GuillaumeGomez committed Apr 4, 2024
1 parent f2ff9c9 commit a815b97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/rustdoc-gui/javascript-disabled.goml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ 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"})

javascript: true
fail-on-request-error: false
block-network-request: "*.js"
reload:

// JS is enabled but wasn't loaded, we should still have the light theme 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 a815b97

Please sign in to comment.