// All stability badges should have rounded corners and colored backgrounds.
-goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
+go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
show-text: true
define-function: (
"check-badge",
(theme, background, color),
block {
- local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": |theme|}
- goto: "file://" + |DOC_PATH| + "/test_docs/index.html"
+ set-local-storage: {"rustdoc-use-system-theme": "false", "rustdoc-theme": |theme|}
+ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
assert: ".docblock .stab"
assert: ".item-table .stab"
assert-css: (".stab", {
"color": |color|,
"background-color": |background|,
})
- goto: "file://" + |DOC_PATH| + "/test_docs/fn.replaced_function.html"
+ go-to: "file://" + |DOC_PATH| + "/test_docs/fn.replaced_function.html"
assert: (".item-info .stab")
assert-css: (".stab", {
"border-radius": "3px",