rustdoc: allow resizing the sidebar
This commit is contained in:
parent
3c23df4935
commit
0983438faa
18 changed files with 409 additions and 28 deletions
|
@ -48,6 +48,7 @@ call-function: (
|
|||
|
||||
// Next, desktop mode layout.
|
||||
set-window-size: (1100, 800)
|
||||
wait-for: "#src-sidebar-toggle"
|
||||
// We check that the sidebar isn't expanded and has the expected width.
|
||||
assert-css: ("nav.sidebar", {"width": "50px"})
|
||||
// We now click on the button to expand the sidebar.
|
||||
|
@ -58,7 +59,7 @@ assert-css: (".src-sidebar-expanded nav.sidebar a", {"font-size": "14px"})
|
|||
// We collapse the sidebar.
|
||||
click: (10, 10)
|
||||
// We ensure that the class has been removed.
|
||||
wait-for: "html:not(.expanded)"
|
||||
wait-for: "html:not(.src-sidebar-expanded)"
|
||||
assert: "nav.sidebar"
|
||||
|
||||
// Checking that only the path to the current file is "open".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue