32 lines
726 B
Plaintext
32 lines
726 B
Plaintext
|
// This test ensures that the icon of the settings button looks as expected on
|
||
|
// all themes.
|
||
|
include: "utils.goml"
|
||
|
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
||
|
show-text: true
|
||
|
|
||
|
define-function: (
|
||
|
"check-image",
|
||
|
[theme, filter],
|
||
|
block {
|
||
|
call-function: ("switch-theme", {"theme": |theme|})
|
||
|
assert-css: ("#settings-menu > a::before", {
|
||
|
"filter": |filter|,
|
||
|
"width": "22px",
|
||
|
"height": "22px",
|
||
|
})
|
||
|
}
|
||
|
)
|
||
|
|
||
|
call-function: ("check-image", {
|
||
|
"theme": "ayu",
|
||
|
"filter": "invert(1)",
|
||
|
})
|
||
|
call-function: ("check-image", {
|
||
|
"theme": "dark",
|
||
|
"filter": "none",
|
||
|
})
|
||
|
call-function: ("check-image", {
|
||
|
"theme": "light",
|
||
|
"filter": "none",
|
||
|
})
|