diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-04-11 19:11:34 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-04-11 19:14:35 +0200 |
| commit | 010fa00b80474648268af58dd2edecbf454a9e55 (patch) | |
| tree | db84173af99d2449aff150f08aaaf468708a506c /tests/rustdoc-gui/toggle-docs.goml | |
| parent | 8aba3f3264b33b53f0d4573ff68bd17aee319e72 (diff) | |
| download | rust-010fa00b80474648268af58dd2edecbf454a9e55.tar.gz rust-010fa00b80474648268af58dd2edecbf454a9e55.zip | |
Update rustdoc GUI tests to new browser-ui-test version
Diffstat (limited to 'tests/rustdoc-gui/toggle-docs.goml')
| -rw-r--r-- | tests/rustdoc-gui/toggle-docs.goml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-gui/toggle-docs.goml b/tests/rustdoc-gui/toggle-docs.goml index c9d236e9bba..9ea6d9b18f4 100644 --- a/tests/rustdoc-gui/toggle-docs.goml +++ b/tests/rustdoc-gui/toggle-docs.goml @@ -1,5 +1,5 @@ // Checks that the documentation toggles have the correct position, style and work as expected. -goto: "file://" + |DOC_PATH| + "/test_docs/index.html" +go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" assert-attribute: ("#main-content > details.top-doc", {"open": ""}) assert-text: ("#toggle-all-docs", "[−]") click: "#toggle-all-docs" @@ -17,7 +17,7 @@ wait-for-attribute: ("#main-content > details.top-doc", {"open": ""}) assert-text: ("#toggle-all-docs", "[−]") // Check that it works on non-module pages as well. -goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html" +go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html" // We first check that everything is visible. assert-text: ("#toggle-all-docs", "[−]") assert-attribute: ("#implementations-list details.toggle", {"open": ""}, ALL) @@ -52,7 +52,7 @@ define-function: ( (theme, filter), block { // Setting the theme. - local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"} + set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"} // We reload the page so the local storage settings are being used. reload: |
