summary refs log tree commit diff
path: root/tests/rustdoc-gui/settings.goml
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-01-10 11:35:37 -0700
committerMichael Howell <michael@notriddle.com>2023-01-13 12:38:03 -0700
commit1d328de3ec00bc5d204306da20cc166e5ae8857d (patch)
tree3c517108a2e3948d6e5b72bf6b9d2422b177813e /tests/rustdoc-gui/settings.goml
parent0b90256ada21c6a81b4c18f2c7a23151ab5fc232 (diff)
downloadrust-1d328de3ec00bc5d204306da20cc166e5ae8857d.tar.gz
rust-1d328de3ec00bc5d204306da20cc166e5ae8857d.zip
rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle
This swaps things around so that the class that gets used more often has
the shorter name.
Diffstat (limited to 'tests/rustdoc-gui/settings.goml')
-rw-r--r--tests/rustdoc-gui/settings.goml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/settings.goml b/tests/rustdoc-gui/settings.goml
index fc3beaa53fa..f236dc3e0fe 100644
--- a/tests/rustdoc-gui/settings.goml
+++ b/tests/rustdoc-gui/settings.goml
@@ -159,7 +159,7 @@ assert-text: ("#preferred-light-theme .setting-name", "Preferred light theme")
 // We now check that clicking on the toggles' text is like clicking on the checkbox.
 // To test it, we use the "Disable keyboard shortcuts".
 local-storage: {"rustdoc-disable-shortcuts": "false"}
-click: ".setting-line:last-child .toggle .label"
+click: ".setting-line:last-child .settings-toggle .label"
 assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
 
 // Make sure that "Disable keyboard shortcuts" actually took effect.
@@ -169,7 +169,7 @@ assert-false: "#help-button .popover"
 wait-for-css: ("#settings-menu .popover", {"display": "block"})
 
 // Now turn keyboard shortcuts back on, and see if they work.
-click: ".setting-line:last-child .toggle .label"
+click: ".setting-line:last-child .settings-toggle .label"
 assert-local-storage: {"rustdoc-disable-shortcuts": "false"}
 press-key: "Escape"
 press-key: "?"