fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// The goal of this test is to check the color of the "no result" links. 2go-to: "file://" + |DOC_PATH| + "/lib2/index.html?search=sdkfskjfsdks" 3show-text: true 4 5define-function: ( 6 "check-no-result", 7 (theme, link, link_hover), 8 block { 9 // Changing theme. 10 set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"} 11 reload: 12 wait-for: "#results" 13 assert: ".search-failed.active" 14 assert-css: ("#results a", {"color": |link|}, ALL) 15 move-cursor-to: "#results a" 16 assert-css: ("#results a:hover", {"color": |link_hover|}) 17 // Moving the cursor to some other place to not create issues with next function run. 18 move-cursor-to: ".search-input" 19 }, 20) 21 22call-function: ("check-no-result", { 23 "theme": "ayu", 24 "link": "#39afd7", 25 "link_hover": "#39afd7", 26}) 27call-function: ("check-no-result", { 28 "theme": "dark", 29 "link": "#d2991d", 30 "link_hover": "#d2991d", 31}) 32call-function: ("check-no-result", { 33 "theme": "light", 34 "link": "#3873ad", 35 "link_hover": "#3873ad", 36})