Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #134988

Merged
merged 17 commits into from
Jan 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add GUI test for item info elements color
  • Loading branch information
GuillaumeGomez committed Dec 28, 2024
commit 00bf8717e3ab5273b3ec587e3a241408cca23935
23 changes: 23 additions & 0 deletions tests/rustdoc-gui/item-info.goml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,26 @@ compare-elements-css: (
"#main-content > .item-info .stab:nth-of-type(2)",
["height"],
)

// Now checking the text color and the links color.
show-text: true
include: "utils.goml"
go-to: "file://" + |DOC_PATH| + "/lib2/trait.Trait.html"

call-function: ("switch-theme", {"theme": "ayu"})
assert-css: (".item-info .stab", {"color": "rgb(197, 197, 197)"}, ALL)
assert-css: (".item-info .stab strong", {"color": "rgb(197, 197, 197)"}, ALL)
assert-css: (".item-info .stab span", {"color": "rgb(197, 197, 197)"}, ALL)
assert-css: (".item-info .stab a", {"color": "rgb(57, 175, 215)"}, ALL)

call-function: ("switch-theme", {"theme": "dark"})
assert-css: (".item-info .stab", {"color": "rgb(221, 221, 221)"}, ALL)
assert-css: (".item-info .stab strong", {"color": "rgb(221, 221, 221)"}, ALL)
assert-css: (".item-info .stab span", {"color": "rgb(221, 221, 221)"}, ALL)
assert-css: (".item-info .stab a", {"color": "rgb(210, 153, 29)"}, ALL)

call-function: ("switch-theme", {"theme": "light"})
assert-css: (".item-info .stab", {"color": "rgb(0, 0, 0)"}, ALL)
assert-css: (".item-info .stab strong", {"color": "rgb(0, 0, 0)"}, ALL)
assert-css: (".item-info .stab span", {"color": "rgb(0, 0, 0)"}, ALL)
assert-css: (".item-info .stab a", {"color": "rgb(56, 115, 173)"}, ALL)
Loading