Skip to content

Commit a815b97

Browse files
Add regression test to ensure that even if JS is enabled but not working, a theme will still get applied
1 parent f2ff9c9 commit a815b97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/rustdoc-gui/javascript-disabled.goml

+9
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ assert-css: (".sub", {"display": "none"})
99
// Even though JS is disabled, we should still have themes applied. Links are never black-colored
1010
// if styles are applied so we check that they are not.
1111
assert-css-false: ("a.src", {"color": "#000"})
12+
13+
javascript: true
14+
fail-on-request-error: false
15+
block-network-request: "*.js"
16+
reload:
17+
18+
// JS is enabled but wasn't loaded, we should still have the light theme applied. Links are never
19+
// black-colored if styles are applied so we check that they are not.
20+
assert-css-false: ("a.src", {"color": "#000"})

0 commit comments

Comments
 (0)