From 7e648f0d7209b6a985475a4cc4a1a02fce10bd86 Mon Sep 17 00:00:00 2001
From: Guillaume Gomez <guillaume.gomez@huawei.com>
Date: Sun, 3 Sep 2023 12:46:56 +0200
Subject: [PATCH 1/2] Use named arguments in `code-color.goml` GUI test

---
 tests/rustdoc-gui/code-color.goml | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/tests/rustdoc-gui/code-color.goml b/tests/rustdoc-gui/code-color.goml
index 833fa05db42b4..cfc997d65179f 100644
--- a/tests/rustdoc-gui/code-color.goml
+++ b/tests/rustdoc-gui/code-color.goml
@@ -19,6 +19,18 @@ define-function: (
     },
 )
 
-call-function: ("check-colors", ("ayu", "rgb(230, 225, 207)", "rgb(255, 180, 84)"))
-call-function: ("check-colors", ("dark", "rgb(221, 221, 221)", "rgb(221, 221, 221)"))
-call-function: ("check-colors", ("light", "rgb(0, 0, 0)", "rgb(0, 0, 0)"))
+call-function: ("check-colors", {
+    "theme": "ayu",
+    "doc_code_color": "rgb(230, 225, 207)",
+    "doc_inline_code_color": "rgb(255, 180, 84)",
+})
+call-function: ("check-colors", {
+    "theme": "dark",
+    "doc_code_color": "rgb(221, 221, 221)",
+    "doc_inline_code_color": "rgb(221, 221, 221)",
+})
+call-function: ("check-colors", {
+    "theme": "light",
+    "doc_code_color": "rgb(0, 0, 0)",
+    "doc_inline_code_color": "rgb(0, 0, 0)",
+})

From 8e5dff1d382098cb1d9e547c0c2dc92c7fd4b547 Mon Sep 17 00:00:00 2001
From: Guillaume Gomez <guillaume.gomez@huawei.com>
Date: Sun, 3 Sep 2023 12:49:22 +0200
Subject: [PATCH 2/2] Migrate GUI colors test to original CSS color format

---
 tests/rustdoc-gui/code-color.goml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/rustdoc-gui/code-color.goml b/tests/rustdoc-gui/code-color.goml
index cfc997d65179f..92bdfb25b001c 100644
--- a/tests/rustdoc-gui/code-color.goml
+++ b/tests/rustdoc-gui/code-color.goml
@@ -21,16 +21,16 @@ define-function: (
 
 call-function: ("check-colors", {
     "theme": "ayu",
-    "doc_code_color": "rgb(230, 225, 207)",
-    "doc_inline_code_color": "rgb(255, 180, 84)",
+    "doc_code_color": "#e6e1cf",
+    "doc_inline_code_color": "#ffb454",
 })
 call-function: ("check-colors", {
     "theme": "dark",
-    "doc_code_color": "rgb(221, 221, 221)",
-    "doc_inline_code_color": "rgb(221, 221, 221)",
+    "doc_code_color": "#ddd",
+    "doc_inline_code_color": "#ddd",
 })
 call-function: ("check-colors", {
     "theme": "light",
-    "doc_code_color": "rgb(0, 0, 0)",
-    "doc_inline_code_color": "rgb(0, 0, 0)",
+    "doc_code_color": "black",
+    "doc_inline_code_color": "black",
 })