about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-11-12 13:58:59 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-11-12 13:58:59 +0100
commitc645d3e0637f8fccfab0f00b9ac3c701a37bb480 (patch)
tree902dea4e4f9cbefa882efb577963a629fecaf236 /src/test
parent35c3ca2eea4aa1c43cf7727ded077ad325967bb4 (diff)
downloadrust-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.goml5
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|}