Skip to content

Commit c645d3e

Browse files
Add GUI test to ensure that source links can be clicked
1 parent 35c3ca2 commit c645d3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/rustdoc-gui/src-font-size.goml

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ assert-css: (".impl.has-srclink .code-header", {"font-size": "18px", "font-weigh
99
// Check the impl items.
1010
assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
1111
assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
12+
13+
// Check that we can click on source link
14+
store-document-property: (url, "URL")
15+
click: ".impl-items .has-srclink .srclink"
16+
assert-document-property-false: {"URL": |url|}

0 commit comments

Comments
 (0)