From 42b2d1aa0a421d77cf5d19476a02bcb89b0f5741 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 3 Apr 2024 14:11:23 +0200 Subject: [PATCH] Add GUI test to ensure there is always a theme applied if JS is disabled --- tests/rustdoc-gui/javascript-disabled.goml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/rustdoc-gui/javascript-disabled.goml b/tests/rustdoc-gui/javascript-disabled.goml index a0872d553af7d..cc1a925fbc9cc 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"})