about summary refs log tree commit diff
path: root/src/test/rustdoc-gui
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-29 15:30:01 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-29 15:30:01 +0200
commitbe569634e17e4fe172029e499006d2bd4dbde901 (patch)
treee688e4ff3f09c551ae1c58009f6745487d611213 /src/test/rustdoc-gui
parentad970a72c34b9a6c2f331c0cf57cc0f13386c5e3 (diff)
downloadrust-be569634e17e4fe172029e499006d2bd4dbde901.tar.gz
rust-be569634e17e4fe172029e499006d2bd4dbde901.zip
Add test for source sidebar toggle
Diffstat (limited to 'src/test/rustdoc-gui')
-rw-r--r--src/test/rustdoc-gui/sidebar-source-code-display.goml14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/sidebar-source-code-display.goml b/src/test/rustdoc-gui/sidebar-source-code-display.goml
index ea8dde7edeb..0474a8638db 100644
--- a/src/test/rustdoc-gui/sidebar-source-code-display.goml
+++ b/src/test/rustdoc-gui/sidebar-source-code-display.goml
@@ -125,4 +125,16 @@ wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1})
 
 // We now check it takes the full size of the display.
 assert-property: ("body", {"clientWidth": "500", "clientHeight": "700"})
-assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"})
\ No newline at end of file
+assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"})
+
+// We now check the display of the toggle once the sidebar is expanded.
+assert-property: ("#sidebar-toggle", {"clientWidth": "500", "clientHeight": "39"})
+assert-css: (
+    "#sidebar-toggle",
+    {
+        "border-top-width": "0px",
+        "border-right-width": "0px",
+        "border-left-width": "0px",
+        "border-bottom-width": "1px",
+    },
+)