diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-14 15:16:16 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-14 22:25:50 +0200 |
| commit | dfc8b6094e8dc96b8dcbde8d2d11e3a1cbab294a (patch) | |
| tree | 2d77b594cb5d6582c2b828faf954836458f734fe /src | |
| parent | 7eb95cd8e4a75598be54b24869541380e536ca55 (diff) | |
| download | rust-dfc8b6094e8dc96b8dcbde8d2d11e3a1cbab294a.tar.gz rust-dfc8b6094e8dc96b8dcbde8d2d11e3a1cbab294a.zip | |
Add test for toggle on mobile size
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/rustdoc-gui/toggle-docs-mobile.goml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs-mobile.goml b/src/test/rustdoc-gui/toggle-docs-mobile.goml new file mode 100644 index 00000000000..fcdfc0344db --- /dev/null +++ b/src/test/rustdoc-gui/toggle-docs-mobile.goml @@ -0,0 +1,21 @@ +goto: file://|DOC_PATH|/test_docs/struct.Foo.html +size: (433, 600) +assert: (".top-doc", "open", "") +click: (4, 280) // This is the position of the top doc comment toggle +assert-false: (".top-doc", "open", "") +click: (4, 280) +assert: (".top-doc", "open", "") +// To ensure that the toggle isn't over the text, we check that the toggle isn't clicked. +click: (3, 280) +assert: (".top-doc", "open", "") + +// Now we do the same but with a little bigger width +size: (600, 600) +assert: (".top-doc", "open", "") +click: (4, 240) // New Y position since all search elements are back on one line. +assert-false: (".top-doc", "open", "") +click: (4, 240) +assert: (".top-doc", "open", "") +// To ensure that the toggle isn't over the text, we check that the toggle isn't clicked. +click: (3, 240) +assert: (".top-doc", "open", "") |
