-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GUI test to check ayu <code> colors
- Loading branch information
1 parent
749cd8f
commit 46b4b37
Showing
2 changed files
with
14 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,13 @@ | ||
// The ayu theme has a different color for the "<code>" tags in the doc blocks. We need to | ||
// check that the rule isn't applied on other "<code>" elements. | ||
goto: file://|DOC_PATH|/test_docs/enum.AnEnum.html | ||
// We need to show the text, otherwise the colors aren't "computed" by the web browser. | ||
show-text: true | ||
// We set the theme to ayu. | ||
local-storage: {"rustdoc-theme": "ayu", "rustdoc-preferred-dark-theme": "ayu", "rustdoc-use-system-theme": "false"} | ||
// We reload to get the text appearing and the theme applied. | ||
reload: | ||
|
||
assert-css: (".docblock code", {"color": "rgb(255, 180, 84)"}, ALL) | ||
// It includes variants and the "titles" as well (for example: "impl RefUnwindSafe for AnEnum"). | ||
assert-css: ("div:not(.docblock) > code", {"color": "rgb(197, 197, 197)"}, ALL) |
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