]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/search-result-colors.goml
Auto merge of #89836 - pierwill:fix-85142-crate-hash, r=wesleywiser
[rust.git] / src / test / rustdoc-gui / search-result-colors.goml
1 goto: file://|DOC_PATH|/test_docs/index.html
2 // We set the theme so we're sure that the correct values will be used, whatever the computer
3 // this test is running on.
4 local-storage: {"rustdoc-theme": "dark", "rustdoc-preferred-dark-theme": "dark", "rustdoc-use-system-theme": "false"}
5 // If the text isn't displayed, the browser doesn't compute color style correctly...
6 show-text: true
7 // We reload the page so the local storage settings are being used.
8 reload:
9 write: (".search-input", "thisisanalias")
10 // Waiting for the search results to appear...
11 wait-for: "#titles"
12 // Checking that the colors for the alias element are the ones expected.
13 assert-css: (".result-name > .alias", {"color": "rgb(255, 255, 255)"})
14 assert-css: (".result-name > .alias > .grey", {"color": "rgb(204, 204, 204)"})