about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-08-24 17:42:31 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-08-26 11:23:54 +0200
commite55ad9b0eb117cd8223541d57a9a44f0ec212930 (patch)
tree511af581b9e079113500164153dd0af9b9b513ee
parent18be2728bd0d59c8fc74311de365a52a2d5e3eee (diff)
downloadrust-e55ad9b0eb117cd8223541d57a9a44f0ec212930.tar.gz
rust-e55ad9b0eb117cd8223541d57a9a44f0ec212930.zip
Migrate GUI colors test to original CSS color format
-rw-r--r--tests/rustdoc-gui/warning-block.goml20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/rustdoc-gui/warning-block.goml b/tests/rustdoc-gui/warning-block.goml
index 2a935bd1a9b..ce75fb58bc1 100644
--- a/tests/rustdoc-gui/warning-block.goml
+++ b/tests/rustdoc-gui/warning-block.goml
@@ -4,7 +4,7 @@ show-text: true
 
 define-function: (
     "check-warning",
-    (theme, color, border_color, background_color),
+    (theme, color, border_color),
     block {
         set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
         reload:
@@ -27,19 +27,19 @@ define-function: (
 
 call-function: ("check-warning", {
     "theme": "ayu",
-    "color": "rgb(197, 197, 197)",
-    "border_color": "rgb(255, 142, 0)",
-    "background_color": "rgba(0, 0, 0, 0)",
+    "color": "#c5c5c5",
+    "border_color": "#ff8e00",
+    "background_color": "transparent",
 })
 call-function: ("check-warning", {
     "theme": "dark",
-    "color": "rgb(221, 221, 221)",
-    "border_color": "rgb(255, 142, 0)",
-    "background_color": "rgba(0, 0, 0, 0)",
+    "color": "#ddd",
+    "border_color": "#ff8e00",
+    "background_color": "transparent",
 })
 call-function: ("check-warning", {
     "theme": "light",
-    "color": "rgb(0, 0, 0)",
-    "border_color": "rgb(255, 142, 0)",
-    "background_color": "rgba(0, 0, 0, 0)",
+    "color": "black",
+    "border_color": "#ff8e00",
+    "background_color": "transparent",
 })