Skip to content

Commit

Permalink
rustdoc: add test cases for links inside the help popover
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Oct 15, 2022
1 parent 6f59981 commit 65f501e
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions src/test/rustdoc-gui/search-form-elements.goml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ assert-css: (
"background-color": "rgb(20, 25, 32)",
},
)
// Link color inside
click: "#help-button"
assert-css: (
"#help a",
{
"color": "rgb(57, 175, 215)",
},
)

assert-css: (
"#settings-menu",
Expand All @@ -62,7 +70,6 @@ assert-css: (
assert-css: (
"#settings-menu > a",
{
"color": "rgb(255, 255, 255)",
"border-color": "rgb(92, 103, 115)",
"background-color": "rgb(20, 25, 32)",
},
Expand All @@ -76,7 +83,6 @@ assert-css: (
assert-css: (
"#settings-menu:hover > a",
{
"color": "rgb(255, 255, 255)",
"border-color": "rgb(224, 224, 224)",
"background-color": "rgb(20, 25, 32)",
},
Expand Down Expand Up @@ -134,6 +140,14 @@ assert-css: (
"background-color": "rgb(240, 240, 240)",
},
)
// Link color inside
click: "#help-button"
assert-css: (
"#help a",
{
"color": "rgb(210, 153, 29)",
},
)

assert-css: (
"#settings-menu",
Expand All @@ -142,7 +156,6 @@ assert-css: (
assert-css: (
"#settings-menu > a",
{
"color": "rgb(0, 0, 0)",
"border-color": "rgb(224, 224, 224)",
"background-color": "rgb(240, 240, 240)",
},
Expand Down Expand Up @@ -214,6 +227,14 @@ assert-css: (
"background-color": "rgb(255, 255, 255)",
},
)
// Link color inside
click: "#help-button"
assert-css: (
"#help a",
{
"color": "rgb(56, 115, 173)",
},
)

assert-css: (
"#settings-menu",
Expand All @@ -222,7 +243,6 @@ assert-css: (
assert-css: (
"#settings-menu > a",
{
"color": "rgb(0, 0, 0)",
"border-color": "rgb(224, 224, 224)",
"background-color": "rgb(255, 255, 255)",
},
Expand Down

0 comments on commit 65f501e

Please sign in to comment.