]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/code-blocks-overflow.goml
rustdoc: fix GUI tests to deal with slightly changed width
[rust.git] / src / test / rustdoc-gui / code-blocks-overflow.goml
1 // This test ensures that codeblocks content don't overflow.
2 goto: file://|DOC_PATH|/lib2/sub_mod/struct.Foo.html
3 size: (1080, 600)
4 // There should be two codeblocks: a rust one and a non-rust one.
5 assert-count: (".docblock > .example-wrap", 2)
6 assert: ".docblock > .example-wrap > .language-txt"
7 assert: ".docblock > .example-wrap > .rust-example-rendered"
8 assert-css: (".docblock > .example-wrap > pre", {"width": "796px", "overflow-x": "auto"}, ALL)