File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ // This test ensures that the item name's width is not wrapped.
2+ go-to: "file://" + |DOC_PATH| + "/test_docs/short_docs/index.html"
3+ set-window-size: (1000, 600)
4+
5+ // First we ensure that there is only one `item-table`...
6+ assert-count: ("ul.item-table", 1)
7+ // And only two items in it.
8+ assert-count: ("ul.item-table li", 2)
9+
10+ // If they don't have the same height, then it means one of the two is on two lines whereas it
11+ // shouldn't!
12+ compare-elements-size: (
13+ ".item-table .item-name a[href='fn.mult_vec_num.html']",
14+ ".item-table .item-name a[href='fn.subt_vec_num.html']",
15+ ["height"],
16+ )
17+
18+ // We also check that the `item-table` is taking the full width.
19+ compare-elements-size: (
20+ "#functions",
21+ "ul.item-table",
22+ ["width"],
23+ )
Original file line number Diff line number Diff line change @@ -620,3 +620,11 @@ pub mod trait_bounds {
620620 pub trait TwoBounds : Sized + Copy { }
621621 pub trait ThreeBounds : Sized + Copy + Eq { }
622622}
623+
624+ pub mod short_docs {
625+ /// mult_vec_num(x: &[f64], y: f64)
626+ pub fn mult_vec_num ( ) { }
627+
628+ /// subt_vec_num(x: &[f64], y: f64)
629+ pub fn subt_vec_num ( ) { }
630+ }
You can’t perform that action at this time.
0 commit comments