]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/font-weight.goml
Rollup merge of #87281 - rust-lang:issue-81487, r=nikomatsakis
[rust.git] / src / test / rustdoc-gui / font-weight.goml
1 goto: file://|DOC_PATH|/lib2/struct.Foo.html
2 // This test checks that the font weight is correctly applied.
3 assert-css: ("//*[@class='docblock type-decl']//a[text()='Alias']", {"font-weight": "400"})
4 assert-css: ("//*[@class='structfield small-section-header']//a[text()='Alias']", {"font-weight": "400"})
5 assert-css: ("#method\.a_method > code", {"font-weight": "600"})
6 assert-css: ("#associatedtype\.X > code", {"font-weight": "600"})
7 assert-css: ("#associatedconstant\.Y > code", {"font-weight": "600"})
8
9 goto: file://|DOC_PATH|/test_docs/type.SomeType.html
10 assert-css: (".top-doc .docblock p", {"font-weight": "400"}, ALL)
11
12 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
13 assert-css: (".impl-items .method", {"font-weight": "600"}, ALL)
14
15 goto: file://|DOC_PATH|/lib2/trait.Trait.html
16 assert-count: (".methods .type", 1)
17 assert-css: (".methods .type", {"font-weight": "600"})
18 assert-count: (".methods .constant", 1)
19 assert-css: (".methods .constant", {"font-weight": "600"})
20 assert-css: (".methods .method", {"font-weight": "600"})