diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-11-12 13:58:59 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-11-12 13:58:59 +0100 |
| commit | c645d3e0637f8fccfab0f00b9ac3c701a37bb480 (patch) | |
| tree | 902dea4e4f9cbefa882efb577963a629fecaf236 /src/test | |
| parent | 35c3ca2eea4aa1c43cf7727ded077ad325967bb4 (diff) | |
| download | rust-c645d3e0637f8fccfab0f00b9ac3c701a37bb480.tar.gz rust-c645d3e0637f8fccfab0f00b9ac3c701a37bb480.zip | |
Add GUI test to ensure that source links can be clicked
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-gui/src-font-size.goml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/src-font-size.goml b/src/test/rustdoc-gui/src-font-size.goml index b17dfd94cf0..9233f37444b 100644 --- a/src/test/rustdoc-gui/src-font-size.goml +++ b/src/test/rustdoc-gui/src-font-size.goml @@ -9,3 +9,8 @@ assert-css: (".impl.has-srclink .code-header", {"font-size": "18px", "font-weigh // Check the impl items. assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px", "font-weight": 400}, ALL) assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px", "font-weight": 600}, ALL) + +// Check that we can click on source link +store-document-property: (url, "URL") +click: ".impl-items .has-srclink .srclink" +assert-document-property-false: {"URL": |url|} |
