diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-04-05 21:38:55 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-04-05 21:38:55 +0200 |
| commit | 7659ef47f03f4e2bbbef65856427add98f898ef5 (patch) | |
| tree | f2069567de13688a16cd07f8e61a75cf0f0da14f /tests/rustdoc-gui/settings.goml | |
| parent | 5958f5e08fa88ee95ede8c00f1b89befe0372d54 (diff) | |
| download | rust-7659ef47f03f4e2bbbef65856427add98f898ef5.tar.gz rust-7659ef47f03f4e2bbbef65856427add98f898ef5.zip | |
Use `include` command to reduce code duplication
Diffstat (limited to 'tests/rustdoc-gui/settings.goml')
| -rw-r--r-- | tests/rustdoc-gui/settings.goml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/settings.goml b/tests/rustdoc-gui/settings.goml index 0bb21c28cb5..56d0f8624e8 100644 --- a/tests/rustdoc-gui/settings.goml +++ b/tests/rustdoc-gui/settings.goml @@ -1,5 +1,6 @@ // This test ensures that the settings menu display is working as expected and that // the settings page is also rendered as expected. +include: "utils.goml" go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" show-text: true // needed when we check for colors below. // First, we check that the settings page doesn't exist. @@ -35,8 +36,7 @@ wait-for: "#alternative-display #search" assert: "#main-content.hidden" // Now let's check the content of the settings menu. -set-local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"} -reload: +call-function: ("switch-theme", {"theme": "dark"}) click: "#settings-menu" wait-for: "#settings" |
