Skip to content

Commit 0128c91

Browse files
Add GUI test for #135499
1 parent 2776bdf commit 0128c91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/rustdoc-gui/links-color.goml

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
55
// This is needed so that the text color is computed.
66
show-text: true
77

8+
// First we check the links of the different items.
89
define-function: (
910
"check-colors",
1011
[theme, mod, macro, struct, enum, trait, fn, type, union, keyword,
@@ -36,6 +37,11 @@ define-function: (
3637
},
3738
ALL,
3839
)
40+
move-cursor-to: ".desc a[href='long_code_block_link/index.html']"
41+
assert-css: (
42+
".desc a[href='long_code_block_link/index.html']",
43+
{"text-decoration": "underline solid " + |mod|},
44+
)
3945
},
4046
)
4147

0 commit comments

Comments
 (0)