diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-05 23:47:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-05 23:47:07 +0100 |
| commit | a424813c4355cddc259dc5a9bb5083f602b0a684 (patch) | |
| tree | 34862b5d8b42988b3ebf39cc2bb5704b343b4ef8 /tests/rustdoc-gui/source-code-page-code-scroll.goml | |
| parent | c94848c046d29f9a80c09aae758e27e418a289f2 (diff) | |
| parent | 854ebe7522ef3b91e708a45077bbcd8da061e876 (diff) | |
| download | rust-a424813c4355cddc259dc5a9bb5083f602b0a684.tar.gz rust-a424813c4355cddc259dc5a9bb5083f602b0a684.zip | |
Rollup merge of #132155 - GuillaumeGomez:impl-block-doc, r=rustdoc
Always display first line of impl blocks even when collapsed Fixes https://github.com/rust-lang/rust/issues/130612. It the line is too long, only the beginning will be visible:  Otherwise, it looks like this:  Can be tested [here](https://rustdoc.crud.net/imperio/impl-block-doc/foo/struct.ImplDoc.html). r? `@notriddle`
Diffstat (limited to 'tests/rustdoc-gui/source-code-page-code-scroll.goml')
| -rw-r--r-- | tests/rustdoc-gui/source-code-page-code-scroll.goml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/source-code-page-code-scroll.goml b/tests/rustdoc-gui/source-code-page-code-scroll.goml index 31ab281d6ce..60012db6c8c 100644 --- a/tests/rustdoc-gui/source-code-page-code-scroll.goml +++ b/tests/rustdoc-gui/source-code-page-code-scroll.goml @@ -2,7 +2,7 @@ go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html" set-window-size: (800, 1000) // "scrollWidth" should be superior than "clientWidth". -assert-property: ("body", {"scrollWidth": 1114, "clientWidth": 800}) +assert-property: ("body", {"scrollWidth": 1776, "clientWidth": 800}) // Both properties should be equal (ie, no scroll on the code block). -assert-property: (".example-wrap .rust", {"scrollWidth": 1000, "clientWidth": 1000}) +assert-property: (".example-wrap .rust", {"scrollWidth": 1662, "clientWidth": 1662}) |
