diff options
| author | bors <bors@rust-lang.org> | 2023-04-05 13:01:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-05 13:01:08 +0000 |
| commit | 4cb92cc83ac6b24d83f8a30763b276cadb8dc41d (patch) | |
| tree | 1e4d4a1ab0cf9597179ac3a289ab6466913a8a82 /tests/rustdoc-gui/source-code-page-code-scroll.goml | |
| parent | 383c1d729ead956584a6dd83cce17c7fdeb61468 (diff) | |
| parent | 038ece0a428956c1173e925acd20efc9c34f04b3 (diff) | |
| download | rust-4cb92cc83ac6b24d83f8a30763b276cadb8dc41d.tar.gz rust-4cb92cc83ac6b24d83f8a30763b276cadb8dc41d.zip | |
Auto merge of #109966 - JohnTitor:rollup-eoqjr5j, r=JohnTitor
Rollup of 6 pull requests Successful merges: - #107236 (Add T-bootstrap label to tools) - #109847 (Only create graphviz nodes for reachable MIR bb's) - #109848 (submodule detection for proper fix on #96188) - #109932 (Source code scrollbar) - #109952 (Move comment about python2 closer to the place it's used) - #109956 (Tweak debug outputs to make debugging new solver easier) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
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}) |
