Add test to ensure the attributes position when js is disabled
This commit is contained in:
parent
09cb84048b
commit
40adb9aeab
|
@ -27,6 +27,11 @@ pub fn foo() {}
|
||||||
/// Just a normal struct.
|
/// Just a normal struct.
|
||||||
pub struct Foo;
|
pub struct Foo;
|
||||||
|
|
||||||
|
impl Foo {
|
||||||
|
#[must_use]
|
||||||
|
pub fn must_use(&self) -> bool { true }
|
||||||
|
}
|
||||||
|
|
||||||
/// Just a normal enum.
|
/// Just a normal enum.
|
||||||
pub enum WhoLetTheDogOut {
|
pub enum WhoLetTheDogOut {
|
||||||
/// Woof!
|
/// Woof!
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
// Check that the attributes are well positioned when javascript is disabled (since
|
||||||
|
// there is no toggle to display)
|
||||||
|
javascript: false
|
||||||
|
goto: file://|DOC_PATH|/struct.Foo.html
|
||||||
|
assert: (".attributes", {"margin-left": "0px"})
|
Loading…
Reference in New Issue