-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for [src] font-size in headers
- Loading branch information
1 parent
270d09d
commit a0085f2
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// This test ensures that the "[src]" have the same font size as their headers | ||
// to avoid having some weird height difference in the background when the element | ||
// is selected. | ||
goto: file://|DOC_PATH|/test_docs/struct.Foo.html | ||
show-text: true | ||
// Check the impl headers. | ||
assert-css: (".impl.has-srclink .srclink", {"font-size": "17px"}, ALL) | ||
// The ".6" part is because the font-size is actually "1.1em". | ||
assert-css: (".impl.has-srclink .code-header.in-band", {"font-size": "17.6px"}, ALL) | ||
// Check the impl items. | ||
assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px"}, ALL) | ||
assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px"}, ALL) |