mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
15 lines
669 B
Plaintext
15 lines
669 B
Plaintext
// This test ensures that the notable trait badges are correctly rendered.
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/notable/struct.Wrapper.html"
|
|
show-text: true
|
|
store-css: (".notable-trait-badge-container", {"background-color": background_color})
|
|
// The background color should be different.
|
|
assert-css-false: (".notable-trait-badge-container > a", {"background-color": |background_color|})
|
|
|
|
store-css: ("#trait-implementations", {"color": text_color})
|
|
assert-css: (".notable-trait-badge-container > a", {
|
|
// The color should be the same as the "main color".
|
|
"color": |text_color|,
|
|
// Checking some additional CSS values.
|
|
"border-radius": "12px",
|
|
})
|