Rollup merge of #99489 - GuillaumeGomez:gui-fixes, r=notriddle
rustdoc UI fixes The first commit fixes this bug:   The second one fixes the missing change of border color when the search input is focused. cc `@jsha` r? `@notriddle`
This commit is contained in:
23
src/test/rustdoc-gui/search-input.goml
Normal file
23
src/test/rustdoc-gui/search-input.goml
Normal file
@@ -0,0 +1,23 @@
|
||||
// Ensures that the search input border color changes on focus.
|
||||
goto: file://|DOC_PATH|/test_docs/index.html
|
||||
local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": "dark"}
|
||||
reload:
|
||||
|
||||
assert-css: (".search-input", {"border-color": "rgb(224, 224, 224)"})
|
||||
click: ".search-input"
|
||||
focus: ".search-input"
|
||||
assert-css: (".search-input", {"border-color": "rgb(0, 141, 253)"})
|
||||
|
||||
local-storage: {"rustdoc-theme": "light"}
|
||||
reload:
|
||||
|
||||
assert-css: (".search-input", {"border-color": "rgb(224, 224, 224)"})
|
||||
click: ".search-input"
|
||||
assert-css: (".search-input", {"border-color": "rgb(102, 175, 233)"})
|
||||
|
||||
local-storage: {"rustdoc-theme": "ayu"}
|
||||
reload:
|
||||
|
||||
assert-css: (".search-input", {"border-color": "rgb(66, 76, 87)"})
|
||||
click: ".search-input"
|
||||
assert-css: (".search-input", {"border-color": "rgb(66, 76, 87)"})
|
||||
@@ -18,7 +18,7 @@ assert-css: (".search-results div.desc", {"width": "570px"})
|
||||
size: (900, 900)
|
||||
|
||||
// First we check the current width and position.
|
||||
assert-css: ("#crate-search", {"width": "222px"})
|
||||
assert-css: ("#crate-search", {"width": "218px"})
|
||||
compare-elements-position-near: (
|
||||
"#crate-search",
|
||||
"#search-settings .search-results-title",
|
||||
|
||||
Reference in New Issue
Block a user