summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/sidebar-source-code-display.goml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
commitd1b2d29528b7794b41e66fc2136e395a02f8529b (patch)
treea4a17504b260206dec3cf55b2dca82929a348ac2 /tests/rustdoc-gui/sidebar-source-code-display.goml
parentReleasing progress-linux version 1.72.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.tar.xz
rustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.zip
Merging upstream version 1.73.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-gui/sidebar-source-code-display.goml')
-rw-r--r--tests/rustdoc-gui/sidebar-source-code-display.goml42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/rustdoc-gui/sidebar-source-code-display.goml b/tests/rustdoc-gui/sidebar-source-code-display.goml
index 0c680bcc9..88546ed25 100644
--- a/tests/rustdoc-gui/sidebar-source-code-display.goml
+++ b/tests/rustdoc-gui/sidebar-source-code-display.goml
@@ -40,7 +40,7 @@ define-function: (
reload:
wait-for-css: ("#src-sidebar-toggle", {"visibility": "visible"})
assert-css: (
- "#source-sidebar details[open] > .files a.selected",
+ "#src-sidebar details[open] > .files a.selected",
{"color": |color_hover|, "background-color": |background|},
)
@@ -62,58 +62,58 @@ define-function: (
// Without hover or focus.
assert-css: (
- "#source-sidebar details[open] > .files a:not(.selected)",
+ "#src-sidebar details[open] > .files a:not(.selected)",
{"color": |color|, "background-color": |background_toggle|},
)
// With focus.
- focus: "#source-sidebar details[open] > .files a:not(.selected)"
+ focus: "#src-sidebar details[open] > .files a:not(.selected)"
wait-for-css: (
- "#source-sidebar details[open] > .files a:not(.selected):focus",
+ "#src-sidebar details[open] > .files a:not(.selected):focus",
{"color": |color_hover|, "background-color": |background_hover|},
)
focus: ".search-input"
// With hover.
- move-cursor-to: "#source-sidebar details[open] > .files a:not(.selected)"
+ move-cursor-to: "#src-sidebar details[open] > .files a:not(.selected)"
assert-css: (
- "#source-sidebar details[open] > .files a:not(.selected):hover",
+ "#src-sidebar details[open] > .files a:not(.selected):hover",
{"color": |color_hover|, "background-color": |background_hover|},
)
// Without hover or focus.
assert-css: (
- "#source-sidebar .dir-entry summary",
+ "#src-sidebar .dir-entry summary",
{"color": |color|, "background-color": |background_toggle|},
)
// With focus.
- focus: "#source-sidebar .dir-entry summary"
+ focus: "#src-sidebar .dir-entry summary"
wait-for-css: (
- "#source-sidebar .dir-entry summary:focus",
+ "#src-sidebar .dir-entry summary:focus",
{"color": |color_hover|, "background-color": |background_hover|},
)
focus: ".search-input"
// With hover.
- move-cursor-to: "#source-sidebar .dir-entry summary"
+ move-cursor-to: "#src-sidebar .dir-entry summary"
assert-css: (
- "#source-sidebar .dir-entry summary:hover",
+ "#src-sidebar .dir-entry summary:hover",
{"color": |color_hover|, "background-color": |background_hover|},
)
// Without hover or focus.
assert-css: (
- "#source-sidebar details[open] > .folders > details > summary",
+ "#src-sidebar details[open] > .folders > details > summary",
{"color": |color|, "background-color": |background_toggle|},
)
// With focus.
- focus: "#source-sidebar details[open] > .folders > details > summary"
+ focus: "#src-sidebar details[open] > .folders > details > summary"
wait-for-css: (
- "#source-sidebar details[open] > .folders > details > summary:focus",
+ "#src-sidebar details[open] > .folders > details > summary:focus",
{"color": |color_hover|, "background-color": |background_hover|},
)
focus: ".search-input"
// With hover.
- move-cursor-to: "#source-sidebar details[open] > .folders > details > summary"
+ move-cursor-to: "#src-sidebar details[open] > .folders > details > summary"
assert-css: (
- "#source-sidebar details[open] > .folders > details > summary:hover",
+ "#src-sidebar details[open] > .folders > details > summary:hover",
{"color": |color_hover|, "background-color": |background_hover|},
)
},
@@ -141,7 +141,7 @@ call-function: ("check-colors", {
"theme": "ayu",
"color": "#c5c5c5",
"color_hover": "#ffb44c",
- "background": "rgb(20, 25, 31)",
+ "background": "#14191f",
"background_hover": "#14191f",
"background_toggle": "rgba(0, 0, 0, 0)",
"background_toggle_hover": "rgba(70, 70, 70, 0.33)",
@@ -190,16 +190,16 @@ assert-window-property: {"pageYOffset": "2542"}
// make it the current selection.
set-window-size: (500, 700)
click: "#src-sidebar-toggle"
-wait-for-css: ("#source-sidebar", {"visibility": "visible"})
+wait-for-css: ("#src-sidebar", {"visibility": "visible"})
assert-local-storage: {"rustdoc-source-sidebar-show": "true"}
click: ".sidebar a.selected"
go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
-wait-for-css: ("#source-sidebar", {"visibility": "hidden"})
+wait-for-css: ("#src-sidebar", {"visibility": "hidden"})
assert-local-storage: {"rustdoc-source-sidebar-show": "false"}
// Resize back to desktop size, to check that the sidebar doesn't spontaneously open.
set-window-size: (1000, 1000)
-wait-for-css: ("#source-sidebar", {"visibility": "hidden"})
+wait-for-css: ("#src-sidebar", {"visibility": "hidden"})
assert-local-storage: {"rustdoc-source-sidebar-show": "false"}
click: "#src-sidebar-toggle"
-wait-for-css: ("#source-sidebar", {"visibility": "visible"})
+wait-for-css: ("#src-sidebar", {"visibility": "visible"})
assert-local-storage: {"rustdoc-source-sidebar-show": "true"}