]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/mobile.goml
Extend `BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE`.
[rust.git] / tests / rustdoc-gui / mobile.goml
1 // Test various properties of the mobile UI
2 goto: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
3 size: (400, 600)
4
5 font-size: 18
6 wait-for: 100 // wait a bit for the resize and the font-size change to be fully taken into account.
7
8 // The out-of-band info (source, stable version, collapse) should be below the
9 // h1 when the screen gets narrow enough.
10 assert-css: (".main-heading", {
11   "display": "flex",
12   "flex-direction": "column"
13 })
14
15 assert-property: (".mobile-topbar h2", {"offsetHeight": 36})
16
17 // Note: We can't use assert-text here because the 'Since' is set by CSS and
18 // is therefore not part of the DOM.
19 assert-css: (".content .out-of-band .since::before", { "content": "\"Since \"" })
20
21 size: (1000, 1000)
22 wait-for: 100 // wait a bit for the resize to be fully taken into account.
23 assert-css-false: (".content .out-of-band .since::before", { "content": "\"Since \"" })
24
25 // On the settings page, the theme buttons should not line-wrap. Instead, they should
26 // all be placed as a group on a line below the setting name "Theme."
27 goto: "file://" + |DOC_PATH| + "/settings.html"
28 size: (400, 600)
29 // Ignored for now https://github.com/rust-lang/rust/issues/93784.
30 // compare-elements-position-near-false: (
31 //     "#preferred-light-theme .setting-radio-name",
32 //     "#preferred-light-theme .setting-radio",
33 //     {"y": 16},
34 // )