diff options
| author | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-05 09:13:28 +0100 |
|---|---|---|
| committer | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-11 09:32:08 +0000 |
| commit | cf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch) | |
| tree | 40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/rustdoc-gui/toggle-docs-mobile.goml | |
| parent | ca855e6e42787ecd062d81d53336fe6788ef51a9 (diff) | |
Move /src/test to /tests
Diffstat (limited to 'src/test/rustdoc-gui/toggle-docs-mobile.goml')
| -rw-r--r-- | src/test/rustdoc-gui/toggle-docs-mobile.goml | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs-mobile.goml b/src/test/rustdoc-gui/toggle-docs-mobile.goml deleted file mode 100644 index 6ce24a81bb3..00000000000 --- a/src/test/rustdoc-gui/toggle-docs-mobile.goml +++ /dev/null @@ -1,33 +0,0 @@ -// Checks that the documentation toggles on mobile have the correct position, style and work -// as expected. -goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html" -size: (433, 600) -assert-attribute: (".top-doc", {"open": ""}) -click: (4, 270) // This is the position of the top doc comment toggle -assert-attribute-false: (".top-doc", {"open": ""}) -click: (4, 270) -assert-attribute: (".top-doc", {"open": ""}) -// To ensure that the toggle isn't over the text, we check that the toggle isn't clicked. -click: (3, 270) -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-list > 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": ""}) -click: (4, 270) // New Y position since all search elements are back on one line. -assert-attribute-false: (".top-doc", {"open": ""}) -click: (4, 270) -assert-attribute: (".top-doc", {"open": ""}) -// To ensure that the toggle isn't over the text, we check that the toggle isn't clicked. -click: (3, 270) -assert-attribute: (".top-doc", {"open": ""}) |
