diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2023-04-05 20:47:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 20:47:23 +0900 |
| commit | ee63b650078ceeeca49bd7918de89495a5685eae (patch) | |
| tree | 288f32c5de09658341603fd3cff2e3be1cb97a91 /tests/rustdoc-gui/source-code-page-code-scroll.goml | |
| parent | 30ffbc492354392bc4db1a7508e7be272ba8f605 (diff) | |
| parent | 8aef0c7926f18550d71346c570ed92b359cb73e9 (diff) | |
| download | rust-ee63b650078ceeeca49bd7918de89495a5685eae.tar.gz rust-ee63b650078ceeeca49bd7918de89495a5685eae.zip | |
Rollup merge of #109932 - GuillaumeGomez:source-code-scrollbar, r=notriddle
Source code scrollbar Fixes https://github.com/rust-lang/rust/issues/109865. You can test it [here](https://rustdoc.crud.net/imperio/source-code-scrollbar/src/test_docs/lib.rs.html). It seems to introduce a few regressions (at least change of behaviour) about the scroll "saving" though. 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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/source-code-page-code-scroll.goml b/tests/rustdoc-gui/source-code-page-code-scroll.goml new file mode 100644 index 00000000000..42f1da749e9 --- /dev/null +++ b/tests/rustdoc-gui/source-code-page-code-scroll.goml @@ -0,0 +1,8 @@ +// Checks that the scrollbar is visible on the page rather than the code block. +goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html" +size: (800, 1000) +// "scrollWidth" should be superior than "clientWidth". +assert-property: ("body", {"scrollWidth": 1047, "clientWidth": 800}) + +// Both properties should be equal (ie, no scroll on the code block). +assert-property: (".example-wrap .rust", {"scrollWidth": 933, "clientWidth": 933}) |
