@@ -8,30 +8,34 @@ fail-on-request-error: false
8
8
9
9
go-to: "file://" + |DOC_PATH| + "/lib2/long_trait/trait.ALongNameBecauseItHelpsTestingTheCurrentProblem.html"
10
10
// We set a fixed size so there is no chance of "random" resize.
11
- set-window-size: (1100 , 800)
11
+ set-window-size: (710 , 800)
12
12
// Logically, the <body> scroll width should be the width of the window.
13
- assert-property: ("body", {"scrollWidth": "1100"})
14
- // However, since there is overflow in the type declaration, its scroll width is bigger.
15
- assert-property: ("pre.item-decl", {"scrollWidth": "1324"})
13
+ assert-property: ("body", {"scrollWidth": "710"})
14
+ // We now check that the section width hasn't grown because of it.
15
+ assert-property: ("#main-content", {"scrollWidth": "450"})
16
+ // However, since there is overflow in the type declaration, its scroll width is bigger that "#main-content".
17
+ assert-property: ("pre.item-decl", {"scrollWidth": "585"})
16
18
17
19
// In the table-ish view on the module index, the name should not be wrapped more than necessary.
18
20
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/index.html"
19
21
assert-property: (".item-table .struct", {"offsetWidth": "684"})
20
22
21
23
// We now make the same check on type declaration...
22
24
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/type.ReallyLongTypeNameLongLongLong.html"
23
- assert-property: ("body", {"scrollWidth": "1100"})
25
+ assert-property: ("body", {"scrollWidth": "710"})
26
+ // Getting the width of the "<main>" element.
27
+ assert-property: ("main", {"scrollWidth": "510"})
24
28
// We now check that the section width hasn't grown because of it.
25
- assert-property: ("#main-content", {"scrollWidth": "840 "})
29
+ assert-property: ("#main-content", {"scrollWidth": "450 "})
26
30
// And now checking that it has scrollable content.
27
31
assert-property: ("pre.item-decl", {"scrollWidth": "1103"})
28
32
29
33
// ... and constant.
30
34
// On a sidenote, it also checks that the (very) long title isn't changing the docblock width.
31
35
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/constant.ReallyLongTypeNameLongLongLongConstBecauseWhyNotAConstRightGigaGigaSupraLong.html"
32
- assert-property: ("body", {"scrollWidth": "1100 "})
36
+ assert-property: ("body", {"scrollWidth": "710 "})
33
37
// We now check that the section width hasn't grown because of it.
34
- assert-property: ("#main-content", {"scrollWidth": "840 "})
38
+ assert-property: ("#main-content", {"scrollWidth": "450 "})
35
39
// And now checking that it has scrollable content.
36
40
assert-property: ("pre.item-decl", {"scrollWidth": "950"})
37
41
0 commit comments