Skip to content

Commit

Permalink
Rollup merge of #87398 - GuillaumeGomez:test-font-module-items, r=not…
Browse files Browse the repository at this point in the history
…riddle

Add test for fonts used for module items

Fixes #85632.

r? `@notriddle`
  • Loading branch information
JohnTitor authored Jul 23, 2021
2 parents f709999 + 327eef9 commit 57ea2d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/rustdoc-gui/module-items-font.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This test checks that the correct font is used on module items (in index.html pages).
goto: file://|DOC_PATH|/test_docs/index.html
assert-css: (".item-table .module-item a", {"font-family": '"Fira Sans", Arial, sans-serif'}, ALL)
assert-css: (".item-table .docblock-short", {"font-family": '"Source Serif 4", "Noto Sans KR", serif'}, ALL)

0 comments on commit 57ea2d8

Please sign in to comment.