]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/huge-logo.goml
Rollup merge of #107524 - cjgillot:both-storage, r=RalfJung
[rust.git] / tests / rustdoc-gui / huge-logo.goml
1 // huge_logo crate has a custom 712x860 logo
2 // test to ensure the maximum size in the layout works correctly
3 goto: "file://" + |DOC_PATH| + "/huge_logo/index.html"
4
5 size: (1280, 1024)
6 // offsetWidth = width of sidebar
7 assert-property: (".sidebar .logo-container", {"offsetWidth": "200", "offsetHeight": 100})
8 assert-property: (".sidebar .logo-container img", {"offsetWidth": "100", "offsetHeight": 100})
9
10 size: (400, 600)
11 // offset = size + margin
12 assert-property: (".mobile-topbar .logo-container", {"offsetWidth": "55", "offsetHeight": 45})
13 assert-property: (".mobile-topbar .logo-container img", {"offsetWidth": "35", "offsetHeight": 35})
14
15 goto: "file://" + |DOC_PATH| + "/src/huge_logo/lib.rs.html"
16
17 size: (1280, 1024)
18 assert-property: (".sub-logo-container", {"offsetWidth": "60", "offsetHeight": 60})
19
20 size: (400, 600)
21 assert-property: (".sub-logo-container", {"offsetWidth": "35", "offsetHeight": 35})