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/sidebar-source-code.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/sidebar-source-code.goml')
| -rw-r--r-- | tests/rustdoc-gui/sidebar-source-code.goml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/rustdoc-gui/sidebar-source-code.goml b/tests/rustdoc-gui/sidebar-source-code.goml index 3f7ef643d18..ef0b5ab38b1 100644 --- a/tests/rustdoc-gui/sidebar-source-code.goml +++ b/tests/rustdoc-gui/sidebar-source-code.goml @@ -1,5 +1,6 @@ // The goal of this test is to ensure that the sidebar is working as expected in the source // code pages. +include: "utils.goml" go-to: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html" show-text: true @@ -8,11 +9,7 @@ define-function: ( "check-colors", [theme, color, background_color], block { - set-local-storage: { - "rustdoc-theme": |theme|, - "rustdoc-use-system-theme": "false", - } - reload: + call-function: ("switch-theme", {"theme": |theme|}) // Checking results colors. assert-css: (".src .sidebar", { "color": |color|, |
