提交 72459039 编写于 作者: G Guillaume Gomez

Add test to enforce sidebar trait items order

上级 5e81325c
...@@ -47,14 +47,19 @@ pub fn some_more_function<T: fmt::Debug>(t: &T) -> String { ...@@ -47,14 +47,19 @@ pub fn some_more_function<T: fmt::Debug>(t: &T) -> String {
/// Woohoo! A trait! /// Woohoo! A trait!
pub trait AnotherOne { pub trait AnotherOne {
/// Some func 3.
fn func3();
/// Some func 1. /// Some func 1.
fn func1(); fn func1();
fn another();
fn why_not();
/// Some func 2. /// Some func 2.
fn func2(); fn func2();
/// Some func 3. fn hello();
fn func3();
} }
/// Check for "i" signs in lists! /// Check for "i" signs in lists!
......
goto: file://|DOC_PATH|/trait.AnotherOne.html
assert: (".sidebar-links a:nth-of-type(1)", "another")
assert: (".sidebar-links a:nth-of-type(2)", "func1")
assert: (".sidebar-links a:nth-of-type(3)", "func2")
assert: (".sidebar-links a:nth-of-type(4)", "func3")
assert: (".sidebar-links a:nth-of-type(5)", "hello")
assert: (".sidebar-links a:nth-of-type(6)", "why_not")
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册