]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/toggle-docs-mobile.goml
Rollup merge of #92146 - willcrichton:example-analyzer, r=jyn514
[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-attribute: (".top-doc", {"open": ""})
4 click: (4, 280) // This is the position of the top doc comment toggle
5 assert-attribute-false: (".top-doc", {"open": ""})
6 click: (4, 280)
7 assert-attribute: (".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-attribute: (".top-doc", {"open": ""})
11
12 // Now we do the same but with a little bigger width
13 size: (600, 600)
14 assert-attribute: (".top-doc", {"open": ""})
15 click: (4, 240) // New Y position since all search elements are back on one line.
16 assert-attribute-false: (".top-doc", {"open": ""})
17 click: (4, 240)
18 assert-attribute: (".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-attribute: (".top-doc", {"open": ""})