diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-24 14:27:33 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-24 14:27:33 +0100 |
| commit | 592028a2fc5f2f9af5aa7d802111b81393736ea0 (patch) | |
| tree | 65694abf1bd744023ab91d31a8a5ccc7623e30cd /tests/rustdoc-gui/code-example-buttons.goml | |
| parent | 6b2f5cf43ffd9a71883bd2ddd82e65ad7ef4bf86 (diff) | |
| download | rust-592028a2fc5f2f9af5aa7d802111b81393736ea0.tar.gz rust-592028a2fc5f2f9af5aa7d802111b81393736ea0.zip | |
Add rustdoc-gui regression test for #137082
Diffstat (limited to 'tests/rustdoc-gui/code-example-buttons.goml')
| -rw-r--r-- | tests/rustdoc-gui/code-example-buttons.goml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/code-example-buttons.goml b/tests/rustdoc-gui/code-example-buttons.goml index c62683b45da..b96f6ddcc37 100644 --- a/tests/rustdoc-gui/code-example-buttons.goml +++ b/tests/rustdoc-gui/code-example-buttons.goml @@ -26,6 +26,8 @@ click: ".example-wrap .copy-button" move-cursor-to: ".search-input" assert-count: (".example-wrap:not(:hover) .button-holder.keep-visible", 0) assert-css: (".example-wrap .copy-button", { "visibility": "hidden" }) +// Since we clicked on the copy button, the clipboard content should have been updated. +assert-clipboard: 'println!("nothing fancy");\nprintln!("but with two lines!");' define-function: ( "check-buttons", |
