Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 212d03d

Browse files
committed
Factor scrape-examples toggle test into a new file
1 parent 679d7ea commit 212d03d

File tree

3 files changed

+14
-38
lines changed

3 files changed

+14
-38
lines changed

src/test/rustdoc-gui/scrape-examples-interactions.goml renamed to src/test/rustdoc-gui/scrape-examples-button-focus.goml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,3 @@ store-property: (fullOffsetHeight, ".scraped-example-list > .scraped-example pre
2727
assert-property: (".scraped-example-list > .scraped-example pre", {
2828
"scrollHeight": |fullOffsetHeight|
2929
})
30-
31-
// Clicking "More examples..." will open additional examples
32-
assert-attribute-false: (".more-examples-toggle", {"open": ""})
33-
click: ".more-examples-toggle"
34-
assert-attribute: (".more-examples-toggle", {"open": ""})
35-
36-
// Toggling all docs will close additional examples
37-
click: "#toggle-all-docs"
38-
assert-attribute-false: (".more-examples-toggle", {"open": ""})
39-
40-
// After re-opening the docs, the additional examples should stay closed
41-
click: "#toggle-all-docs"
42-
assert-attribute-false: (".more-examples-toggle", {"open": ""})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html"
2+
3+
// Clicking "More examples..." will open additional examples
4+
assert-attribute-false: (".more-examples-toggle", {"open": ""})
5+
click: ".more-examples-toggle"
6+
assert-attribute: (".more-examples-toggle", {"open": ""})
7+
8+
// Toggling all docs will close additional examples
9+
click: "#toggle-all-docs"
10+
assert-attribute-false: (".more-examples-toggle", {"open": ""})
11+
12+
// After re-opening the docs, the additional examples should stay closed
13+
click: "#toggle-all-docs"
14+
assert-attribute-false: (".more-examples-toggle", {"open": ""})

src/test/rustdoc-gui/src/scrape_examples/examples/check2.rs

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)