@@ -3,20 +3,17 @@ javascript: false
3
3
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
4
4
// Since the javascript is disabled, there shouldn't be a toggle.
5
5
assert-false: "#sidebar-toggle"
6
- // For some reason, we need to wait a bit here because it seems like the transition on opacity
7
- // is being applied whereas it can't be reproduced in a browser...
8
- wait-for-css: (".sidebar > *", {"visibility": "hidden", "opacity": 0})
6
+ wait-for-css: (".sidebar > *", {"visibility": "hidden"})
9
7
10
8
// Let's retry with javascript enabled.
11
9
javascript: true
12
10
reload:
13
11
wait-for: "#sidebar-toggle"
14
- assert-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1 })
15
- assert-css: (".sidebar > *:not(#sidebar-toggle)", {"visibility": "hidden", "opacity": 0 })
12
+ assert-css: ("#sidebar-toggle", {"visibility": "visible"})
13
+ assert-css: (".sidebar > *:not(#sidebar-toggle)", {"visibility": "hidden"})
16
14
// Let's expand the sidebar now.
17
15
click: "#sidebar-toggle"
18
- // Because of the transition CSS, we check by using `wait-for-css` instead of `assert-css`.
19
- wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1})
16
+ wait-for-css: ("#sidebar-toggle", {"visibility": "visible"})
20
17
21
18
// We now check that opening the sidebar and clicking a link will leave it open.
22
19
// The behavior here on desktop is different than the behavior on mobile,
@@ -36,7 +33,7 @@ show-text: true
36
33
local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
37
34
reload:
38
35
// Waiting for the sidebar to be displayed...
39
- wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1 })
36
+ wait-for-css: ("#sidebar-toggle", {"visibility": "visible"})
40
37
assert-css: (
41
38
"#source-sidebar details[open] > .files a.selected",
42
39
{"color": "rgb(0, 0, 0)", "background-color": "rgb(255, 255, 255)"},
@@ -91,7 +88,7 @@ assert-css: (
91
88
local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"}
92
89
reload:
93
90
// Waiting for the sidebar to be displayed...
94
- wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1 })
91
+ wait-for-css: ("#sidebar-toggle", {"visibility": "visible"})
95
92
assert-css: (
96
93
"#source-sidebar details[open] > .files > a.selected",
97
94
{"color": "rgb(221, 221, 221)", "background-color": "rgb(51, 51, 51)"},
@@ -146,7 +143,7 @@ assert-css: (
146
143
local-storage: {"rustdoc-theme": "ayu", "rustdoc-use-system-theme": "false"}
147
144
reload:
148
145
// Waiting for the sidebar to be displayed...
149
- wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1 })
146
+ wait-for-css: ("#sidebar-toggle", {"visibility": "visible"})
150
147
assert-css: (
151
148
"#source-sidebar details[open] > .files a.selected",
152
149
{"color": "rgb(255, 180, 76)", "background-color": "rgb(20, 25, 31)"},
@@ -201,7 +198,7 @@ assert-css: (
201
198
size: (500, 700)
202
199
reload:
203
200
// Waiting for the sidebar to be displayed...
204
- wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1 })
201
+ wait-for-css: ("#sidebar-toggle", {"visibility": "visible"})
205
202
206
203
// We now check it takes the full size of the display.
207
204
assert-property: ("body", {"clientWidth": "500", "clientHeight": "700"})
0 commit comments