mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
21 lines
768 B
Plaintext
21 lines
768 B
Plaintext
// Checks sidebar resizing close the Settings popover
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
|
assert-property: (".sidebar", {"clientWidth": "200"})
|
|
show-text: true
|
|
click: "#settings-menu"
|
|
wait-for: "#settings"
|
|
assert-css: ("#settings", {"display": "block"})
|
|
// normal resizing
|
|
drag-and-drop: ((205, 100), (185, 100))
|
|
assert-property: (".sidebar", {"clientWidth": "182"})
|
|
assert-css: ("#settings", {"display": "none"})
|
|
|
|
// Now same thing, but for source code
|
|
go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
|
click: "#settings-menu"
|
|
wait-for: "#settings"
|
|
assert-css: ("#settings", {"display": "block"})
|
|
assert-property: (".sidebar", {"clientWidth": "49"})
|
|
drag-and-drop: ((52, 100), (185, 100))
|
|
assert-css: ("#settings", {"display": "none"})
|