mirror of https://github.com/rust-lang/rust.git
Add test for the presence of "Aliased type" title in the sidebar
This commit is contained in:
parent
7468af8d66
commit
755835ef3d
|
@ -19,6 +19,8 @@ impl<T> Foo for GenericStruct<T> {}
|
|||
impl Bar for GenericStruct<u32> {}
|
||||
|
||||
// @has 'foo/type.TypedefStruct.html'
|
||||
// We check that "Aliased type" is also present as a title in the sidebar.
|
||||
// @has - '//*[@class="sidebar-elems"]//h3/a[@href="#aliased-type"]' 'Aliased type'
|
||||
// We check that we have the implementation of the type alias itself.
|
||||
// @has - '//*[@id="impl-TypedefStruct"]/h3' 'impl TypedefStruct'
|
||||
// @has - '//*[@id="method.on_alias"]/h4' 'pub fn on_alias()'
|
||||
|
|
Loading…
Reference in New Issue