File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ // This test ensures that there is no macro duplicates in the sidebar.
2
+ goto: file://|DOC_PATH|/test_docs/macro.a.html
3
+ // Waiting for the elements in the sidebar to be rendered.
4
+ wait-for: ".sidebar-elems .others .macro"
5
+ // Check there is only one macro named "a" listed in the sidebar.
6
+ assert-count: (
7
+ "//*[@class='sidebar-elems']//*[@class='others']/*[@class='block macro']//li/a[text()='a']",
8
+ 1,
9
+ )
10
+ // Check there is only one macro named "b" listed in the sidebar.
11
+ assert-count: (
12
+ "//*[@class='sidebar-elems']//*[@class='others']/*[@class='block macro']//li/a[text()='b']",
13
+ 1,
14
+ )
Original file line number Diff line number Diff line change @@ -271,3 +271,6 @@ impl EmptyTrait1 for HasEmptyTraits {}
271
271
impl EmptyTrait2 for HasEmptyTraits { }
272
272
#[ doc( cfg( feature = "some-feature" ) ) ]
273
273
impl EmptyTrait3 for HasEmptyTraits { }
274
+
275
+ mod macros;
276
+ pub use macros:: * ;
Original file line number Diff line number Diff line change
1
+ #[ macro_export]
2
+ macro_rules! a{ ( ) => { } }
3
+ #[ macro_export]
4
+ macro_rules! b{ ( ) => { } }
You can’t perform that action at this time.
0 commit comments