]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/help-page.goml
Rollup merge of #104462 - notriddle:notriddle/rightside-padding-right, r=GuillaumeGomez
[rust.git] / src / test / rustdoc-gui / help-page.goml
1 // This test ensures that opening the help page in its own tab works.
2 goto: "file://" + |DOC_PATH| + "/help.html"
3 size: (1000, 1000) // Try desktop size first.
4 wait-for: "#help"
5 assert-css: ("#help", {"display": "block"})
6 assert-css: ("#help dd", {"font-size": "16px"})
7 click: "#help-button > a"
8 assert-css: ("#help", {"display": "block"})
9 compare-elements-property: (".sub", "#help", ["offsetWidth"])
10 compare-elements-position: (".sub", "#help", ("x"))
11 size: (500, 1000) // Try mobile next.
12 assert-css: ("#help", {"display": "block"})
13 compare-elements-property: (".sub", "#help", ["offsetWidth"])
14 compare-elements-position: (".sub", "#help", ("x"))
15
16 // This test ensures that opening the help popover without switching pages works.
17 goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
18 size: (1000, 1000) // Only supported on desktop.
19 assert-false: "#help"
20 click: "#help-button > a"
21 assert-css: ("#help", {"display": "block"})
22 assert-css: ("#help dd", {"font-size": "16px"})
23 click: "#help-button > a"
24 assert-css: ("#help", {"display": "none"})
25 compare-elements-property-false: (".sub", "#help", ["offsetWidth"])
26 compare-elements-position-false: (".sub", "#help", ("x"))