]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/src-font-size.goml
Rollup merge of #107777 - compiler-errors:derive_const-actually-derive-const, r=fee1...
[rust.git] / tests / rustdoc-gui / src-font-size.goml
1 // This test ensures that the "[src]" have the same font size as their headers
2 // to avoid having some weird height difference in the background when the element
3 // is selected.
4 goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
5 show-text: true
6 // Check the impl headers.
7 assert-css: (".impl .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
8 assert-css: (".impl .code-header", {"font-size": "18px", "font-weight": 600}, ALL)
9 // Check the impl items.
10 assert-css: (".impl-items .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
11 assert-css: (".impl-items .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
12
13 // Check that we can click on source link
14 store-document-property: (url, "URL")
15 click: ".impl-items .srclink"
16 assert-document-property-false: {"URL": |url|}