summary refs log tree commit diff
path: root/src/test/rustdoc-gui/duplicate-macro-reexport.goml
blob: c79b3a220c42c85b26e53d49e87a7d2bf457c4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This test ensures that there is no macro duplicates in the sidebar.
goto: file://|DOC_PATH|/test_docs/macro.a.html
// Waiting for the elements in the sidebar to be rendered.
wait-for: ".sidebar-elems .others .macro"
// Check there is only one macro named "a" listed in the sidebar.
assert-count: (
    "//*[@class='sidebar-elems']//*[@class='others']/*[@class='block macro']//li/a[text()='a']",
    1,
)
// Check there is only one macro named "b" listed in the sidebar.
assert-count: (
    "//*[@class='sidebar-elems']//*[@class='others']/*[@class='block macro']//li/a[text()='b']",
    1,
)