rust/tests/rustdoc-gui/huge-logo.goml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-11-05 12:14:31 -05:00
// huge_logo crate has a custom 712x860 logo
// test to ensure the maximum size in the layout works correctly
go-to: "file://" + |DOC_PATH| + "/huge_logo/index.html"
2022-11-05 12:14:31 -05:00
set-window-size: (1280, 1024)
2022-11-05 12:14:31 -05:00
// offsetWidth = width of sidebar
assert-property: (".sidebar .logo-container", {"offsetWidth": "200", "offsetHeight": 100})
assert-property: (".sidebar .logo-container img", {"offsetWidth": "100", "offsetHeight": 100})
set-window-size: (400, 600)
2022-11-05 12:14:31 -05:00
// offset = size + margin
assert-property: (".mobile-topbar .logo-container", {"offsetWidth": "55", "offsetHeight": 45})
assert-property: (".mobile-topbar .logo-container img", {"offsetWidth": "35", "offsetHeight": 35})
go-to: "file://" + |DOC_PATH| + "/src/huge_logo/lib.rs.html"
2022-11-05 12:14:31 -05:00
set-window-size: (1280, 1024)
2022-11-05 12:14:31 -05:00
assert-property: (".sub-logo-container", {"offsetWidth": "60", "offsetHeight": 60})
set-window-size: (400, 600)
// 43 because 35px + 8px of margin
assert-css: (".sub-logo-container > img", {"margin-bottom": "8px"})
assert-property: (".sub-logo-container", {"offsetWidth": "35", "offsetHeight": 43})