File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1721,6 +1721,7 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
17211721 }
17221722 currentPointerId = e . pointerId ;
17231723 }
1724+ window . hideAllModals ( false ) ;
17241725 e . preventDefault ( ) ;
17251726 window . addEventListener ( "pointermove" , resize , false ) ;
17261727 window . addEventListener ( "pointercancel" , stopResize , false ) ;
Original file line number Diff line number Diff line change 1+ // Checks sidebar resizing close the Settings popover
2+ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
3+ assert-property: (".sidebar", {"clientWidth": "200"})
4+ show-text: true
5+ click: "#settings-menu"
6+ wait-for: "#settings"
7+ assert-css: ("#settings", {"display": "block"})
8+ // normal resizing
9+ drag-and-drop: ((205, 100), (185, 100))
10+ assert-property: (".sidebar", {"clientWidth": "182"})
11+ assert-css: ("#settings", {"display": "none"})
12+
13+ // Now same thing, but for source code
14+ go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
15+ click: "#settings-menu"
16+ wait-for: "#settings"
17+ assert-css: ("#settings", {"display": "block"})
18+ assert-property: (".sidebar", {"clientWidth": "49"})
19+ drag-and-drop: ((52, 100), (185, 100))
20+ assert-css: ("#settings", {"display": "none"})
You can’t perform that action at this time.
0 commit comments