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...
7 // We reload the page so the local storage settings are being used.
9 write: (".search-input", "thisisanalias")
10 // Waiting for the search results to appear...
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)"})