diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-04-03 14:11:23 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-04-03 14:27:20 +0200 |
| commit | 8f9d93bf57cb1c74cd52581a980bc3accd01e5c4 (patch) | |
| tree | 615788e2c0c75d4ec4743e053d878708eef60174 | |
| parent | 2edc54c830bb3925967c77486fef32707b4321ce (diff) | |
| download | rust-8f9d93bf57cb1c74cd52581a980bc3accd01e5c4.tar.gz rust-8f9d93bf57cb1c74cd52581a980bc3accd01e5c4.zip | |
Add GUI test to ensure there is always a theme applied if JS is disabled
| -rw-r--r-- | tests/rustdoc-gui/javascript-disabled.goml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/javascript-disabled.goml b/tests/rustdoc-gui/javascript-disabled.goml index a0872d553af..cc1a925fbc9 100644 --- a/tests/rustdoc-gui/javascript-disabled.goml +++ b/tests/rustdoc-gui/javascript-disabled.goml @@ -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"}) |
