@@ -3,12 +3,26 @@ go-to: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
3
3
// Ensuring that the item information don't take 100% of the width if unnecessary.
4
4
// We set a fixed size so there is no chance of "random" resize.
5
5
set-window-size: (1100, 800)
6
- // We check that ".item-info" is bigger than its content.
7
6
assert-size: (".item-info", {"width": 840})
8
- assert-size: (".item-info .stab", {"width": 289 })
7
+ assert-size: (".item-info .stab", {"width": 840 })
9
8
assert-position: (".item-info .stab", {"x": 245})
10
9
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
+
11
24
// Now we ensure that they're not rendered on the same line.
25
+ set-window-size: (1100, 800)
12
26
go-to: "file://" + |DOC_PATH| + "/lib2/trait.Trait.html"
13
27
// We first ensure that there are two item info on the trait.
14
28
assert-count: ("#main-content > .item-info .stab", 2)
0 commit comments