1 // Example code blocks sometimes have a "Run" button to run them on the
2 // Playground. That button is hidden until the user hovers over the code block.
3 // This test checks that it is hidden, and that it shows on hover. It also
4 // checks for its color.
5 goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
10 (theme, color, background, hover_color, hover_background),
12 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
14 ("assert-css", (".test-arrow", {"visibility": "hidden"})),
15 ("move-cursor-to", ".example-wrap"),
16 ("assert-css", (".test-arrow", {
17 "visibility": "visible",
19 "background-color": |background|,
21 "border-radius": "5px",
23 ("move-cursor-to", ".test-arrow"),
24 ("assert-css", (".test-arrow:hover", {
25 "visibility": "visible",
26 "color": |hover_color|,
27 "background-color": |hover_background|,
29 "border-radius": "5px",
34 call-function: ("check-run-button", {
36 "color": "rgb(120, 135, 151)",
37 "background": "rgba(57, 175, 215, 0.09)",
38 "hover_color": "rgb(197, 197, 197)",
39 "hover_background": "rgba(57, 175, 215, 0.37)",
41 call-function: ("check-run-button", {
43 "color": "rgb(222, 222, 222)",
44 "background": "rgba(78, 139, 202, 0.2)",
45 "hover_color": "rgb(222, 222, 222)",
46 "hover_background": "rgb(78, 139, 202)",
48 call-function: ("check-run-button", {
50 "color": "rgb(245, 245, 245)",
51 "background": "rgba(78, 139, 202, 0.2)",
52 "hover_color": "rgb(245, 245, 245)",
53 "hover_background": "rgb(78, 139, 202)",