@@ -8,30 +8,34 @@ fail-on-request-error: false
88
99go-to: "file://" + |DOC_PATH| + "/lib2/long_trait/trait.ALongNameBecauseItHelpsTestingTheCurrentProblem.html"
1010// 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)
1212// 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"})
1618
1719// In the table-ish view on the module index, the name should not be wrapped more than necessary.
1820go-to: "file://" + |DOC_PATH| + "/lib2/too_long/index.html"
1921assert-property: (".item-table .struct", {"offsetWidth": "684"})
2022
2123// We now make the same check on type declaration...
2224go-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"})
2428// 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 "})
2630// And now checking that it has scrollable content.
2731assert-property: ("pre.item-decl", {"scrollWidth": "1103"})
2832
2933// ... and constant.
3034// On a sidenote, it also checks that the (very) long title isn't changing the docblock width.
3135go-to: "file://" + |DOC_PATH| + "/lib2/too_long/constant.ReallyLongTypeNameLongLongLongConstBecauseWhyNotAConstRightGigaGigaSupraLong.html"
32- assert-property: ("body", {"scrollWidth": "1100 "})
36+ assert-property: ("body", {"scrollWidth": "710 "})
3337// 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 "})
3539// And now checking that it has scrollable content.
3640assert-property: ("pre.item-decl", {"scrollWidth": "950"})
3741
0 commit comments