fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// huge_logo crate has a custom 712x860 logo 2// test to ensure the maximum size in the layout works correctly 3go-to: "file://" + |DOC_PATH| + "/huge_logo/index.html" 4 5set-window-size: (1280, 1024) 6// offsetWidth = width of sidebar 7assert-property: (".sidebar .logo-container", {"offsetWidth": "200", "offsetHeight": 100}) 8assert-property: (".sidebar .logo-container img", {"offsetWidth": "100", "offsetHeight": 100}) 9 10set-window-size: (400, 600) 11// offset = size + margin 12assert-property: (".mobile-topbar .logo-container", {"offsetWidth": "55", "offsetHeight": 45}) 13assert-property: (".mobile-topbar .logo-container img", {"offsetWidth": "35", "offsetHeight": 35}) 14 15go-to: "file://" + |DOC_PATH| + "/src/huge_logo/lib.rs.html" 16 17set-window-size: (1280, 1024) 18assert-property: (".sub-logo-container", {"offsetWidth": "60", "offsetHeight": 60}) 19 20set-window-size: (400, 600) 21// 43 because 35px + 8px of margin 22assert-css: (".sub-logo-container > img", {"margin-bottom": "8px"}) 23assert-property: (".sub-logo-container", {"offsetWidth": "35", "offsetHeight": 43})