// This test ensures that items and documentation code blocks are wrapped in


// We need to disable this check because `implementors/test_docs/trait.AnotherOne.js`
// doesn't exist.
fail-on-request-error: false
goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
size: (1080, 600)
// There should be four doc codeblocks.
// Check that their content is inside 

assert-count: (".example-wrap pre > code", 4)
// Check that function signature is inside 

assert: ".item-decl pre.rust > code"

goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
assert: ".item-decl pre.rust > code"

goto: "file://" + |DOC_PATH| + "/test_docs/enum.AnEnum.html"
assert: ".item-decl pre.rust > code"

goto: "file://" + |DOC_PATH| + "/test_docs/trait.AnotherOne.html"
assert: ".item-decl pre.rust > code"

goto: "file://" + |DOC_PATH| + "/test_docs/type.SomeType.html"
assert: ".item-decl pre.rust > code"