@@ -8,34 +8,38 @@ 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
20
22
// We'll ensure that items with short documentation have the same width.
21
23
store-property: ("//*[@class='item-table']//*[@class='struct']/..", {"offsetWidth": offset_width})
22
- assert: |offset_width| == "277 "
24
+ assert: |offset_width| == "149 "
23
25
assert-property: ("//*[@class='item-table']//*[@class='constant']/..", {"offsetWidth": |offset_width|})
24
26
25
27
// We now make the same check on type declaration...
26
28
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/type.ReallyLongTypeNameLongLongLong.html"
27
- assert-property: ("body", {"scrollWidth": "1100"})
29
+ assert-property: ("body", {"scrollWidth": "710"})
30
+ // Getting the width of the "<main>" element.
31
+ assert-property: ("main", {"scrollWidth": "510"})
28
32
// We now check that the section width hasn't grown because of it.
29
- assert-property: ("#main-content", {"scrollWidth": "840 "})
33
+ assert-property: ("#main-content", {"scrollWidth": "450 "})
30
34
// And now checking that it has scrollable content.
31
35
assert-property: ("pre.item-decl", {"scrollWidth": "1103"})
32
36
33
37
// ... and constant.
34
38
// On a sidenote, it also checks that the (very) long title isn't changing the docblock width.
35
39
go-to: "file://" + |DOC_PATH| + "/lib2/too_long/constant.ReallyLongTypeNameLongLongLongConstBecauseWhyNotAConstRightGigaGigaSupraLong.html"
36
- assert-property: ("body", {"scrollWidth": "1100 "})
40
+ assert-property: ("body", {"scrollWidth": "710 "})
37
41
// We now check that the section width hasn't grown because of it.
38
- assert-property: ("#main-content", {"scrollWidth": "840 "})
42
+ assert-property: ("#main-content", {"scrollWidth": "450 "})
39
43
// And now checking that it has scrollable content.
40
44
assert-property: ("pre.item-decl", {"scrollWidth": "950"})
41
45
0 commit comments