diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-04-04 23:49:34 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-04-04 23:49:34 +0200 |
| commit | a815b97850e487f5c668edf83357cf871b3db57a (patch) | |
| tree | 4840c5b10bd6ffa108c72e42ccea2b9c23016845 | |
| parent | f2ff9c903548d88211df90cd4e1673577ff58ad5 (diff) | |
| download | rust-a815b97850e487f5c668edf83357cf871b3db57a.tar.gz rust-a815b97850e487f5c668edf83357cf871b3db57a.zip | |
Add regression test to ensure that even if JS is enabled but not working, a theme will still get applied
| -rw-r--r-- | tests/rustdoc-gui/javascript-disabled.goml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/javascript-disabled.goml b/tests/rustdoc-gui/javascript-disabled.goml index cc1a925fbc9..a7579ef7ec1 100644 --- a/tests/rustdoc-gui/javascript-disabled.goml +++ b/tests/rustdoc-gui/javascript-disabled.goml @@ -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"}) |
