summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-gui/theme-in-history.goml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/rustdoc-gui/theme-in-history.goml
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rustdoc-gui/theme-in-history.goml')
-rw-r--r--src/test/rustdoc-gui/theme-in-history.goml27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/test/rustdoc-gui/theme-in-history.goml b/src/test/rustdoc-gui/theme-in-history.goml
deleted file mode 100644
index 10508e86a..000000000
--- a/src/test/rustdoc-gui/theme-in-history.goml
+++ /dev/null
@@ -1,27 +0,0 @@
-// Ensures that the theme is working when going back in history.
-goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
-// Set the theme to dark.
-local-storage: {
- "rustdoc-theme": "dark",
- "rustdoc-use-system-theme": "false",
-}
-// We reload the page so the local storage settings are being used.
-reload:
-assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
-assert-local-storage: { "rustdoc-theme": "dark" }
-
-// Now we go to the settings page.
-goto: "file://" + |DOC_PATH| + "/settings.html"
-wait-for: "#settings"
-// We change the theme to "light".
-click: "#theme-light"
-wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" })
-assert-local-storage: { "rustdoc-theme": "light" }
-
-// We go back in history.
-history-go-back:
-// Confirm that we're not on the settings page.
-assert-false: "#settings"
-// Check that the current theme is still "light".
-assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
-assert-local-storage: { "rustdoc-theme": "light" }