Skip to content

Commit c8bbeef

Browse files
Don't call switch-theme function
1 parent b1d1e66 commit c8bbeef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/rustdoc-gui/help-page.goml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// This test ensures that opening the help page in its own tab works.
2-
include: "utils.goml"
32
go-to: "file://" + |DOC_PATH| + "/help.html"
43
set-window-size: (1000, 1000) // Try desktop size first.
54
wait-for: "#help"
@@ -20,7 +19,9 @@ define-function: (
2019
"check-colors",
2120
[theme, color, background, box_shadow],
2221
block {
23-
call-function: ("switch-theme", {"theme": |theme|})
22+
// FIXME: no clue why we can't call the `switch-theme` function here...
23+
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
24+
reload:
2425
assert-css: ("#help kbd", {
2526
"color": |color|,
2627
"background-color": |background|,

0 commit comments

Comments
 (0)