about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-29 10:44:27 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-29 10:44:27 +0100
commitaee9ebae968f971e08a1300460e36c161b56787a (patch)
tree6ab9ff4c23907df32261d47271db808d3820376b
parentfa11fb4c5afc10b3dfe4129ca0f882b80131b49a (diff)
downloadrust-aee9ebae968f971e08a1300460e36c161b56787a.tar.gz
rust-aee9ebae968f971e08a1300460e36c161b56787a.zip
Extend theme change GUI test
-rw-r--r--src/test/rustdoc-gui/theme-change.goml16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/theme-change.goml b/src/test/rustdoc-gui/theme-change.goml
index 60d089ffa37..73edee64e43 100644
--- a/src/test/rustdoc-gui/theme-change.goml
+++ b/src/test/rustdoc-gui/theme-change.goml
@@ -9,3 +9,19 @@ click: "#theme-choices > button:last-child"
 wait-for: 500
 // should be the light theme so let's check the color
 assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
+
+goto: file://|DOC_PATH|/settings.html
+click: "#theme-light"
+wait-for: 500
+assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
+assert-local-storage: { "rustdoc-theme": "light" }
+
+click: "#theme-dark"
+wait-for: 500
+assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
+assert-local-storage: { "rustdoc-theme": "dark" }
+
+click: "#theme-ayu"
+wait-for: 500
+assert-css: ("body", { "background-color": "rgb(15, 20, 25)" })
+assert-local-storage: { "rustdoc-theme": "ayu" }