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,5 +1,6 @@
|
|||
// The goal of this test is to ensure that the sidebar is working as expected in the source
|
||||
// code pages.
|
||||
include: "utils.goml"
|
||||
go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
||||
show-text: true
|
||||
|
||||
|
@ -8,11 +9,7 @@ define-function: (
|
|||
"check-colors",
|
||||
[theme, color, background_color],
|
||||
block {
|
||||
set-local-storage: {
|
||||
"rustdoc-theme": |theme|,
|
||||
"rustdoc-use-system-theme": "false",
|
||||
}
|
||||
reload:
|
||||
call-function: ("switch-theme", {"theme": |theme|})
|
||||
// Checking results colors.
|
||||
assert-css: (".src .sidebar", {
|
||||
"color": |color|,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue