Use include
command to reduce code duplication
This commit is contained in:
parent
5958f5e08f
commit
7659ef47f0
43 changed files with 112 additions and 150 deletions
|
@ -1,4 +1,5 @@
|
|||
// Checking the colors of the codeblocks tooltips.
|
||||
include: "utils.goml"
|
||||
go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
|
||||
show-text: true
|
||||
|
||||
|
@ -6,9 +7,7 @@ define-function: (
|
|||
"check-colors",
|
||||
[theme, background, color, border],
|
||||
block {
|
||||
// Setting the theme.
|
||||
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
|
||||
reload:
|
||||
call-function: ("switch-theme", {"theme": |theme|})
|
||||
|
||||
// compile_fail block
|
||||
assert-css: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue