mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Add test for source sidebar toggle
This commit is contained in:
parent
ad970a72c3
commit
be569634e1
@ -126,3 +126,15 @@ wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1})
|
|||||||
// We now check it takes the full size of the display.
|
// We now check it takes the full size of the display.
|
||||||
assert-property: ("body", {"clientWidth": "500", "clientHeight": "700"})
|
assert-property: ("body", {"clientWidth": "500", "clientHeight": "700"})
|
||||||
assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"})
|
assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"})
|
||||||
|
|
||||||
|
// We now check the display of the toggle once the sidebar is expanded.
|
||||||
|
assert-property: ("#sidebar-toggle", {"clientWidth": "500", "clientHeight": "39"})
|
||||||
|
assert-css: (
|
||||||
|
"#sidebar-toggle",
|
||||||
|
{
|
||||||
|
"border-top-width": "0px",
|
||||||
|
"border-right-width": "0px",
|
||||||
|
"border-left-width": "0px",
|
||||||
|
"border-bottom-width": "1px",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user