From c645d3e0637f8fccfab0f00b9ac3c701a37bb480 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 12 Nov 2022 13:58:59 +0100 Subject: [PATCH] Add GUI test to ensure that source links can be clicked --- src/test/rustdoc-gui/src-font-size.goml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/rustdoc-gui/src-font-size.goml b/src/test/rustdoc-gui/src-font-size.goml index b17dfd94cf0e9..9233f37444b6e 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|}