Skip to content

Commit

Permalink
Rollup merge of #135535 - GuillaumeGomez:gui-test-135499, r=notriddle
Browse files Browse the repository at this point in the history
Add GUI test for #135499

Fixes #135510.

cc `@lolbinarycat`
r? `@notriddle`
  • Loading branch information
matthiaskrgr authored Jan 15, 2025
2 parents e4bbca2 + 0128c91 commit b6dc41f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/rustdoc-gui/links-color.goml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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|},
)
},
)

Expand Down

0 comments on commit b6dc41f

Please sign in to comment.