Skip to content

Commit 4f24866

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
assert-position: (".impl-items section.method", {"x": 245}, ALL)
12+
13+
// Checking on mobile.
14+
set-window-size: (600, 600)
15+
assert-position: (".impl-items section.method", {"x": 25}, ALL)

0 commit comments

Comments
 (0)