Skip to content

Commit

Permalink
Rollup merge of #113724 - GuillaumeGomez:migrate-gui-test-color-21, r…
Browse files Browse the repository at this point in the history
…=notriddle

Migrate GUI colors test to original CSS color format

Follow-up of #111459.

r? `@notriddle`
  • Loading branch information
matthiaskrgr authored Jul 15, 2023
2 parents 331b5ba + 2778b71 commit 5f94c87
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/rustdoc-gui/headings.goml
Original file line number Diff line number Diff line change
Expand Up @@ -194,27 +194,27 @@ call-function: (
"check-colors",
{
"theme": "ayu",
"heading_color": "rgb(255, 255, 255)",
"small_heading_color": "rgb(197, 197, 197)",
"heading_border_color": "rgb(92, 103, 115)",
"heading_color": "#fff",
"small_heading_color": "#c5c5c5",
"heading_border_color": "#5c6773",
},
)
call-function: (
"check-colors",
{
"theme": "dark",
"heading_color": "rgb(221, 221, 221)",
"small_heading_color": "rgb(221, 221, 221)",
"heading_border_color": "rgb(210, 210, 210)",
"heading_color": "#ddd",
"small_heading_color": "#ddd",
"heading_border_color": "#d2d2d2",
},
)
call-function: (
"check-colors",
{
"theme": "light",
"heading_color": "rgb(0, 0, 0)",
"small_heading_color": "rgb(0, 0, 0)",
"heading_border_color": "rgb(221, 221, 221)",
"heading_color": "black",
"small_heading_color": "black",
"heading_border_color": "#ddd",
},
)

Expand All @@ -224,7 +224,7 @@ define-function: (
block {
set-local-storage: {"rustdoc-theme": |theme|}
reload:
assert-css: (".since", {"color": "rgb(128, 128, 128)"}, ALL)
assert-css: (".since", {"color": "#808080"}, ALL)
},
)

Expand Down

0 comments on commit 5f94c87

Please sign in to comment.