Skip to content

Commit dfc8b60

Browse files
Add test for toggle on mobile size
1 parent 7eb95cd commit dfc8b60

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
goto: file://|DOC_PATH|/test_docs/struct.Foo.html
2+
size: (433, 600)
3+
assert: (".top-doc", "open", "")
4+
click: (4, 280) // This is the position of the top doc comment toggle
5+
assert-false: (".top-doc", "open", "")
6+
click: (4, 280)
7+
assert: (".top-doc", "open", "")
8+
// To ensure that the toggle isn't over the text, we check that the toggle isn't clicked.
9+
click: (3, 280)
10+
assert: (".top-doc", "open", "")
11+
12+
// Now we do the same but with a little bigger width
13+
size: (600, 600)
14+
assert: (".top-doc", "open", "")
15+
click: (4, 240) // New Y position since all search elements are back on one line.
16+
assert-false: (".top-doc", "open", "")
17+
click: (4, 240)
18+
assert: (".top-doc", "open", "")
19+
// To ensure that the toggle isn't over the text, we check that the toggle isn't clicked.
20+
click: (3, 240)
21+
assert: (".top-doc", "open", "")

0 commit comments

Comments
 (0)