1 // Test various properties of the mobile UI
2 goto: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
6 wait-for: 100 // wait a bit for the resize and the font-size change to be fully taken into account.
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", {
12 "flex-direction": "column"
15 assert-property: (".mobile-topbar h2.location", {"offsetHeight": 36})
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 \"" })
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 \"" })
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"
29 // Ignored for now https://github.com/rust-lang/rust/issues/93784.
30 // compare-elements-position-near-false: ("#preferred-light-theme .setting-name", "#preferred-light-theme .choice", {"y": 16})