Skip to content

Commit aee9eba

Browse files
Extend theme change GUI test
1 parent fa11fb4 commit aee9eba

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test/rustdoc-gui/theme-change.goml

+16
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@ click: "#theme-choices > button:last-child"
99
wait-for: 500
1010
// should be the light theme so let's check the color
1111
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
12+
13+
goto: file://|DOC_PATH|/settings.html
14+
click: "#theme-light"
15+
wait-for: 500
16+
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
17+
assert-local-storage: { "rustdoc-theme": "light" }
18+
19+
click: "#theme-dark"
20+
wait-for: 500
21+
assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
22+
assert-local-storage: { "rustdoc-theme": "dark" }
23+
24+
click: "#theme-ayu"
25+
wait-for: 500
26+
assert-css: ("body", { "background-color": "rgb(15, 20, 25)" })
27+
assert-local-storage: { "rustdoc-theme": "ayu" }

0 commit comments

Comments
 (0)