diff options
| author | bors <bors@rust-lang.org> | 2024-04-18 07:26:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-18 07:26:15 +0000 |
| commit | ecd45472f800ee946e23cd68361f4ce5ccaf9433 (patch) | |
| tree | f3286483d996cd2e04f5314d3e4045d16636679e /tests/rustdoc-gui | |
| parent | b1248bc60da40f03c91f3f7135e964d8e6626d4c (diff) | |
| parent | 5543da9aec9088931786431025c3d10f56e07727 (diff) | |
| download | rust-ecd45472f800ee946e23cd68361f4ce5ccaf9433.tar.gz rust-ecd45472f800ee946e23cd68361f4ce5ccaf9433.zip | |
Auto merge of #124111 - matthiaskrgr:rollup-cmmkryf, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #124041 (Fix copy path button) - #124047 (Match ergonomics 2024: miscellaneous code cleanups) - #124064 (Move confusing comment about otherwise blocks in `lower_match_tree`) - #124090 (llvm: update riscv target feature to match LLVM 19) - #124100 (fix: make `str::from_raw_parts_mut` `mut`) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc-gui')
| -rw-r--r-- | tests/rustdoc-gui/copy-path.goml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/copy-path.goml b/tests/rustdoc-gui/copy-path.goml new file mode 100644 index 00000000000..dc05b96f7ae --- /dev/null +++ b/tests/rustdoc-gui/copy-path.goml @@ -0,0 +1,15 @@ +// Checks that the "copy path" button is not triggering JS error and its display +// isn't broken. +go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html" + +// First we store the size of the button before we click on it. +store-size: ("#copy-path", {"width": width, "height": height}) +click: "#copy-path" +// We wait for the new text to appear. +wait-for: "#copy-path.clicked" +// We check that the size didn't change. +assert-size: ("#copy-path.clicked", {"width": |width|, "height": |height|}) +// We wait for the button to turn back to its original state. +wait-for: "#copy-path:not(.clicked)" +// We check that the size is still the same. +assert-size: ("#copy-path:not(.clicked)", {"width": |width|, "height": |height|}) |
