Skip to content

Commit 9e041fa

Browse files
Add GUI regression test for methods left margin on mobile
1 parent dceb9a6 commit 9e041fa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// This test is to ensure that methods are correctly aligned on the left side.
2+
3+
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
4+
5+
// First we ensure that we have methods with and without documentation.
6+
assert: ".impl-items > details.method-toggle > summary > section.method"
7+
assert: ".impl-items > section.method"
8+
9+
// Checking on desktop.
10+
set-window-size: (900, 600)
11+
store-position: (".impl-items section.method", {"x": x})
12+
assert-position: (".impl-items section.method", {"x": |x|}, ALL)
13+
14+
// Checking on mobile.
15+
set-window-size: (600, 600)
16+
store-position: (".impl-items section.method", {"x": x})
17+
assert-position: (".impl-items section.method", {"x": |x|}, ALL)

0 commit comments

Comments
 (0)