]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/mobile.goml
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / 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
7 // The out-of-band info (source, stable version, collapse) should be below the
8 // h1 when the screen gets narrow enough.
9 assert-css: (".main-heading", {
10   "display": "flex",
11   "flex-direction": "column"
12 })
13
14 assert-property: (".mobile-topbar h2.location", {"offsetHeight": 45})
15
16 // Note: We can't use assert-text here because the 'Since' is set by CSS and
17 // is therefore not part of the DOM.
18 assert-css: (".content .out-of-band .since::before", { "content": "\"Since \"" })
19
20 size: (1000, 1000)
21 assert-css-false: (".content .out-of-band .since::before", { "content": "\"Since \"" })
22
23 // On the settings page, the theme buttons should not line-wrap. Instead, they should
24 // all be placed as a group on a line below the setting name "Theme."
25 goto: file://|DOC_PATH|/settings.html
26 size: (400, 600)
27 compare-elements-position-near-false: ("#preferred-light-theme .setting-name", "#preferred-light-theme .choice", {"y": 16})