fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB34 linesraw
1// Test various properties of the mobile UI
2go-to: "file://" + |DOC_PATH| + "/staged_api/struct.Foo.html"
3set-window-size: (400, 600)
4
5set-font-size: 18
6wait-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.
10assert-css: (".main-heading", {
11  "display": "flex",
12  "flex-direction": "column"
13})
14
15assert-property: (".mobile-topbar h2", {"offsetHeight": 33})
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.
19assert-css: (".content .out-of-band .since::before", { "content": "\"Since \"" })
20
21set-window-size: (1000, 1000)
22wait-for: 100 // wait a bit for the resize to be fully taken into account.
23assert-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."
27go-to: "file://" + |DOC_PATH| + "/settings.html"
28set-window-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// )