mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			560 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			560 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
// This test ensures that there is no macro duplicates in the sidebar.
 | 
						|
go-to: "file://" + |DOC_PATH| + "/test_docs/macro.a.html"
 | 
						|
// Waiting for the elements in the sidebar to be rendered.
 | 
						|
wait-for: ".sidebar-elems .macro"
 | 
						|
// Check there is only one macro named "a" listed in the sidebar.
 | 
						|
assert-count: (
 | 
						|
    "//*[@class='sidebar-elems']//*[@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='block macro']//li/a[text()='b']",
 | 
						|
    1,
 | 
						|
)
 |