diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-31 23:14:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-31 23:14:49 +0100 |
| commit | 2da54c729ecd3ad6a4557ccc6b4f9e6ef8632ae2 (patch) | |
| tree | 6623834d2dcd1e9c7f25216eea512c59bb1050bf /src/test/rustdoc-gui | |
| parent | 4e4d2585e500315346ab5cbd43eee285a3d5e7ea (diff) | |
| parent | 7c78ea5b53a8a37d3d56a79c1aeca75beab80140 (diff) | |
| download | rust-2da54c729ecd3ad6a4557ccc6b4f9e6ef8632ae2.tar.gz rust-2da54c729ecd3ad6a4557ccc6b4f9e6ef8632ae2.zip | |
Rollup merge of #92440 - GuillaumeGomez:fix-mobile-toggles, r=jsha
Fix mobile toggles position Before:  After:  r? `@jsha`
Diffstat (limited to 'src/test/rustdoc-gui')
| -rw-r--r-- | src/test/rustdoc-gui/toggle-docs-mobile.goml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs-mobile.goml b/src/test/rustdoc-gui/toggle-docs-mobile.goml index 471d88701d4..b370dd012fa 100644 --- a/src/test/rustdoc-gui/toggle-docs-mobile.goml +++ b/src/test/rustdoc-gui/toggle-docs-mobile.goml @@ -9,6 +9,16 @@ assert-attribute: (".top-doc", {"open": ""}) click: (3, 280) assert-attribute: (".top-doc", {"open": ""}) +// Assert the position of the toggle on the top doc block. +assert-position: (".top-doc summary::before", {"x": 4}) +// Assert the position of the toggle on the impl block. +assert-position: ("#implementations + details > summary::before", {"x": 4}) +// Assert the position of the toggle on a method. +assert-position: ( + "#trait-implementations-list .impl-items .method-toggle > summary::before", + {"x": 4}, +) + // Now we do the same but with a little bigger width size: (600, 600) assert-attribute: (".top-doc", {"open": ""}) |
