Rollup merge of #103296 - GuillaumeGomez:collapse-expand-shortcuts, r=notriddle
+/- shortcut now only expand/collapse, not both Fixes https://github.com/rust-lang/rust/issues/102772. r? ```@notriddle```
This commit is contained in:
commit
5bf18adaa2
2 changed files with 48 additions and 29 deletions
|
|
@ -11,3 +11,21 @@ press-key: "?"
|
|||
assert-css: ("#help-button .popover", {"display": "block"})
|
||||
press-key: "Escape"
|
||||
assert-css: ("#help-button .popover", {"display": "none"})
|
||||
// Checking doc collapse and expand.
|
||||
// It should be displaying a "-":
|
||||
assert-text: ("#toggle-all-docs", "[\u2212]")
|
||||
press-key: "-"
|
||||
wait-for-text: ("#toggle-all-docs", "[+]")
|
||||
assert-attribute: ("#toggle-all-docs", {"class": "will-expand"})
|
||||
// Pressing it again shouldn't do anything.
|
||||
press-key: "-"
|
||||
assert-text: ("#toggle-all-docs", "[+]")
|
||||
assert-attribute: ("#toggle-all-docs", {"class": "will-expand"})
|
||||
// Expanding now.
|
||||
press-key: "+"
|
||||
wait-for-text: ("#toggle-all-docs", "[\u2212]")
|
||||
assert-attribute: ("#toggle-all-docs", {"class": ""})
|
||||
// Pressing it again shouldn't do anything.
|
||||
press-key: "+"
|
||||
assert-text: ("#toggle-all-docs", "[\u2212]")
|
||||
assert-attribute: ("#toggle-all-docs", {"class": ""})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue