2021-12-29 13:56:07 +00:00
|
|
|
// This test ensures that the "[src]" have the same font size as their headers
|
|
|
|
// to avoid having some weird height difference in the background when the element
|
|
|
|
// is selected.
|
2023-04-11 17:11:34 +00:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
|
2021-12-29 13:56:07 +00:00
|
|
|
show-text: true
|
|
|
|
// Check the impl headers.
|
2023-07-14 23:38:01 +00:00
|
|
|
assert-css: (".impl a.src", {"font-size": "16px", "font-weight": 400}, ALL)
|
2023-01-28 23:35:02 +00:00
|
|
|
assert-css: (".impl .code-header", {"font-size": "18px", "font-weight": 600}, ALL)
|
2021-12-29 13:56:07 +00:00
|
|
|
// Check the impl items.
|
2023-07-14 23:38:01 +00:00
|
|
|
assert-css: (".impl-items a.src", {"font-size": "16px", "font-weight": 400}, ALL)
|
2023-01-28 23:35:02 +00:00
|
|
|
assert-css: (".impl-items .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
|
2022-11-12 12:58:59 +00:00
|
|
|
|
|
|
|
// Check that we can click on source link
|
2023-05-10 08:56:59 +00:00
|
|
|
store-document-property: {"URL": url}
|
2023-07-14 23:38:01 +00:00
|
|
|
click: ".impl-items a.src"
|
2022-11-12 12:58:59 +00:00
|
|
|
assert-document-property-false: {"URL": |url|}
|