@@ -3,12 +3,26 @@ go-to: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
33// Ensuring that the item information don't take 100% of the width if unnecessary.
44// We set a fixed size so there is no chance of "random" resize.
55set-window-size: (1100, 800)
6- // We check that ".item-info" is bigger than its content.
76assert-size: (".item-info", {"width": 840})
8- assert-size: (".item-info .stab", {"width": 289 })
7+ assert-size: (".item-info .stab", {"width": 840 })
98assert-position: (".item-info .stab", {"x": 245})
109
10+ // We check that the display of the feature elements is not broken. It serves as regression
11+ // test for <https://github.com/rust-lang/rust/issues/118615>.
12+ set-window-size: (850, 800)
13+ store-position: (
14+ "//*[@class='stab portability']//code[text()='Win32_System']",
15+ {"x": first_line_x, "y": first_line_y},
16+ )
17+ store-position: (
18+ "//*[@class='stab portability']//code[text()='Win32_System_Diagnostics']",
19+ {"x": second_line_x, "y": second_line_y},
20+ )
21+ assert: |first_line_x| != |second_line_x| && |first_line_x| == 516 && |second_line_x| == 272
22+ assert: |first_line_y| != |second_line_y| && |first_line_y| == 672 && |second_line_y| == 693
23+
1124// Now we ensure that they're not rendered on the same line.
25+ set-window-size: (1100, 800)
1226go-to: "file://" + |DOC_PATH| + "/lib2/trait.Trait.html"
1327// We first ensure that there are two item info on the trait.
1428assert-count: ("#main-content > .item-info .stab", 2)
0 commit comments