fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// Check that the targetted element has the expected styles. 2go-to: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html#method.a_method" 3show-text: true 4 5// Confirming that the method is the target. 6assert: "#method\.a_method:target" 7 8define-function: ( 9 "check-style", 10 (theme, background, border), 11 block { 12 set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"} 13 reload: 14 assert-css: ("#method\.a_method:target", { 15 "background-color": |background|, 16 "border-right": "3px solid " + |border|, 17 }) 18 }, 19) 20 21call-function: ("check-style", { 22 "theme": "ayu", 23 "background": "rgba(255, 236, 164, 0.06)", 24 "border": "rgba(255, 180, 76, 0.85)", 25}) 26call-function: ("check-style", { 27 "theme": "dark", 28 "background": "#494a3d", 29 "border": "#bb7410", 30}) 31call-function: ("check-style", { 32 "theme": "light", 33 "background": "#fdffd3", 34 "border": "#ad7c37", 35})