Add test to ensure the attributes position when js is disabled

This commit is contained in:
Guillaume Gomez 2021-03-09 21:33:39 +01:00
parent 09cb84048b
commit 40adb9aeab
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,11 @@ pub fn foo() {}
/// Just a normal struct.
pub struct Foo;
impl Foo {
#[must_use]
pub fn must_use(&self) -> bool { true }
}
/// Just a normal enum.
pub enum WhoLetTheDogOut {
/// Woof!

View File

@ -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"})