about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-15 22:06:12 +0100
committerGitHub <noreply@github.com>2025-01-15 22:06:12 +0100
commitb6dc41f0813321fbc0bd7d4600cfd257fc03dfb6 (patch)
treee84e876151be92178936970c2f3e66a3e6d23c8f
parente4bbca2a9b551c364eb65a9a1a7758b125e7fc90 (diff)
parent0128c910f487e010a0c5693080a680f0d0a56a74 (diff)
downloadrust-b6dc41f0813321fbc0bd7d4600cfd257fc03dfb6.tar.gz
rust-b6dc41f0813321fbc0bd7d4600cfd257fc03dfb6.zip
Rollup merge of #135535 - GuillaumeGomez:gui-test-135499, r=notriddle
Add GUI test for #135499

Fixes #135510.

cc `@lolbinarycat`
r? `@notriddle`
-rw-r--r--tests/rustdoc-gui/links-color.goml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/links-color.goml b/tests/rustdoc-gui/links-color.goml
index ad1b5e801ca..8d26b826479 100644
--- a/tests/rustdoc-gui/links-color.goml
+++ b/tests/rustdoc-gui/links-color.goml
@@ -5,6 +5,7 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
 // This is needed so that the text color is computed.
 show-text: true
 
+// First we check the links of the different items.
 define-function: (
     "check-colors",
     [theme, mod, macro, struct, enum, trait, fn, type, union, keyword,
@@ -36,6 +37,11 @@ define-function: (
             },
             ALL,
         )
+        move-cursor-to: ".desc a[href='long_code_block_link/index.html']"
+        assert-css: (
+            ".desc a[href='long_code_block_link/index.html']",
+            {"text-decoration": "underline solid " + |mod|},
+        )
     },
 )