about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-05-31 13:03:46 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-05-31 13:03:46 +0200
commit9dedb43e876832143ded6a2737c969c4a6e73296 (patch)
treeccd3a87b78386675a7f2fa6d48469b9f4ed99f0c
parent3266c36624e804f9f086ebd40db19039b55a4ec1 (diff)
downloadrust-9dedb43e876832143ded6a2737c969c4a6e73296.tar.gz
rust-9dedb43e876832143ded6a2737c969c4a6e73296.zip
Migrate GUI colors test to original CSS color format
-rw-r--r--tests/rustdoc-gui/theme-in-history.goml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-gui/theme-in-history.goml b/tests/rustdoc-gui/theme-in-history.goml
index 8fcd0ecd309..42c5b5e6e69 100644
--- a/tests/rustdoc-gui/theme-in-history.goml
+++ b/tests/rustdoc-gui/theme-in-history.goml
@@ -7,7 +7,7 @@ set-local-storage: {
 }
 // We reload the page so the local storage settings are being used.
 reload:
-assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
+assert-css: ("body", { "background-color": "#353535" })
 assert-local-storage: { "rustdoc-theme": "dark" }
 
 // Now we go to the settings page.
@@ -15,7 +15,7 @@ go-to: "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)" })
+wait-for-css: ("body", { "background-color": "white" })
 assert-local-storage: { "rustdoc-theme": "light" }
 
 // We go back in history.
@@ -23,5 +23,5 @@ 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-css: ("body", { "background-color": "white" })
 assert-local-storage: { "rustdoc-theme": "light" }