summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/sidebar-macro-reexport.goml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-gui/sidebar-macro-reexport.goml')
-rw-r--r--tests/rustdoc-gui/sidebar-macro-reexport.goml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/sidebar-macro-reexport.goml b/tests/rustdoc-gui/sidebar-macro-reexport.goml
new file mode 100644
index 000000000..b5c1b6a43
--- /dev/null
+++ b/tests/rustdoc-gui/sidebar-macro-reexport.goml
@@ -0,0 +1,5 @@
+// This test ensures that the reexport of a macro doesn't make the original macro
+// displayed twice in the sidebar.
+goto: "file://" + |DOC_PATH| + "/test_docs/macro.repro.html"
+wait-for: ".sidebar-elems .block.macro a"
+assert-count: ("//*[@class='sidebar-elems']//*[@class='block macro']//a[text()='repro']", 1)