diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-04-05 22:33:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-05 22:33:30 +0200 |
| commit | a074d278d30df4d4a3d6cd55117e6fdddfc9dd25 (patch) | |
| tree | 7830e167c8616df4839086a109b14fef75e66819 /tests/rustdoc-gui/codeblock-tooltip.goml | |
| parent | b3b7f27e612da4ffdf2f33e60a5fe2618dbe925b (diff) | |
| parent | 7659ef47f03f4e2bbbef65856427add98f898ef5 (diff) | |
| download | rust-a074d278d30df4d4a3d6cd55117e6fdddfc9dd25.tar.gz rust-a074d278d30df4d4a3d6cd55117e6fdddfc9dd25.zip | |
Rollup merge of #123515 - GuillaumeGomez:use-include, r=notriddle
Use `include` command to reduce code duplication Since we updated `browser-ui-test` version, let's make use of the new commands. :) r? `@notriddle`
Diffstat (limited to 'tests/rustdoc-gui/codeblock-tooltip.goml')
| -rw-r--r-- | tests/rustdoc-gui/codeblock-tooltip.goml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/rustdoc-gui/codeblock-tooltip.goml b/tests/rustdoc-gui/codeblock-tooltip.goml index 19e3927f642..654589c3eba 100644 --- a/tests/rustdoc-gui/codeblock-tooltip.goml +++ b/tests/rustdoc-gui/codeblock-tooltip.goml @@ -1,4 +1,5 @@ // Checking the colors of the codeblocks tooltips. +include: "utils.goml" go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html" show-text: true @@ -6,9 +7,7 @@ define-function: ( "check-colors", [theme, background, color, border], block { - // Setting the theme. - set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"} - reload: + call-function: ("switch-theme", {"theme": |theme|}) // compile_fail block assert-css: ( |
