@@ -8,34 +8,38 @@ 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"
1921
2022// We'll ensure that items with short documentation have the same width.
2123store-property: ("//*[@class='item-table']//*[@class='struct']/..", {"offsetWidth": offset_width})
22- assert: |offset_width| == "277 "
24+ assert: |offset_width| == "149 "
2325assert-property: ("//*[@class='item-table']//*[@class='constant']/..", {"offsetWidth": |offset_width|})
2426
2527// We now make the same check on type declaration...
2628go-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"})
2832// 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 "})
3034// And now checking that it has scrollable content.
3135assert-property: ("pre.item-decl", {"scrollWidth": "1103"})
3236
3337// ... and constant.
3438// On a sidenote, it also checks that the (very) long title isn't changing the docblock width.
3539go-to: "file://" + |DOC_PATH| + "/lib2/too_long/constant.ReallyLongTypeNameLongLongLongConstBecauseWhyNotAConstRightGigaGigaSupraLong.html"
36- assert-property: ("body", {"scrollWidth": "1100 "})
40+ assert-property: ("body", {"scrollWidth": "710 "})
3741// 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 "})
3943// And now checking that it has scrollable content.
4044assert-property: ("pre.item-decl", {"scrollWidth": "950"})
4145
0 commit comments