diff options
| author | bors <bors@rust-lang.org> | 2021-07-14 18:36:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-14 18:36:44 +0000 |
| commit | e87188c252a3b6dea8ed54d7915fbc2cfb61443b (patch) | |
| tree | d1a7dcc583bbe747a2b06f9d31d45f13a65da0f3 /src/test/rustdoc-gui/code-blocks-overflow.goml | |
| parent | 4f0c568785adcc0a123cac9d47047020b7a24821 (diff) | |
| parent | ac6672b74631cfcdbfd042724e29969b193cefa1 (diff) | |
Auto merge of #87133 - GuillaumeGomez:rollup-pfz9jbk, r=GuillaumeGomez
Rollup of 6 pull requests Successful merges: - #87027 (expand: Support helper attributes for built-in derive macros) - #87056 (Fix codeblocks overflow) - #87117 (Shrink the CrateStore dynamic interface.) - #87120 (rustdoc: Remove unnecessary `extern crate` aliases) - #87125 (Fix Ayu theme `<code>` color) - #87130 (Update browser-ui-test package version) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc-gui/code-blocks-overflow.goml')
| -rw-r--r-- | src/test/rustdoc-gui/code-blocks-overflow.goml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/code-blocks-overflow.goml b/src/test/rustdoc-gui/code-blocks-overflow.goml new file mode 100644 index 00000000000..ee4dad444e9 --- /dev/null +++ b/src/test/rustdoc-gui/code-blocks-overflow.goml @@ -0,0 +1,8 @@ +// This test ensures that codeblocks content don't overflow. +goto: file://|DOC_PATH|/lib2/sub_mod/struct.Foo.html +size: (1080, 600) +// There should be two codeblocks: a rust one and a non-rust one. +assert-count: (".docblock > .example-wrap", 2) +assert: ".docblock > .example-wrap > .language-txt" +assert: ".docblock > .example-wrap > .rust-example-rendered" +assert-css: (".docblock > .example-wrap > pre", {"width": "796px", "overflow-x": "auto"}, ALL) |
