2021-12-29 07:56:07 -06: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 12:11:34 -05:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
|
2021-12-29 07:56:07 -06:00
|
|
|
show-text: true
|
|
|
|
// Check the impl headers.
|
2023-01-28 17:35:02 -06:00
|
|
|
assert-css: (".impl .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
|
|
|
|
assert-css: (".impl .code-header", {"font-size": "18px", "font-weight": 600}, ALL)
|
2021-12-29 07:56:07 -06:00
|
|
|
// Check the impl items.
|
2023-01-28 17:35:02 -06:00
|
|
|
assert-css: (".impl-items .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
|
|
|
|
assert-css: (".impl-items .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
|
2022-11-12 06:58:59 -06:00
|
|
|
|
|
|
|
// Check that we can click on source link
|
|
|
|
store-document-property: (url, "URL")
|
2023-01-28 17:35:02 -06:00
|
|
|
click: ".impl-items .srclink"
|
2022-11-12 06:58:59 -06:00
|
|
|
assert-document-property-false: {"URL": |url|}
|