]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/toggle-docs-mobile.goml
Auto merge of #85416 - durin42:llvm-catchup-may-2021, r=nagisa
[rust.git] / src / test / rustdoc-gui / toggle-docs-mobile.goml
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", "")