From 859bbc5deffbee7870433c541cdbeb4a4a23780f Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sun, 17 Dec 2023 23:06:31 -0700 Subject: rustdoc: clean up source sidebar hide button This is a redesign of the feature, with parts pulled from https://github.com/rust-lang/rust/pull/119049 but with a button that looks more like a button and matches the one used on other sidebar pages. --- tests/rustdoc-gui/code-sidebar-toggle.goml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/rustdoc-gui/code-sidebar-toggle.goml') diff --git a/tests/rustdoc-gui/code-sidebar-toggle.goml b/tests/rustdoc-gui/code-sidebar-toggle.goml index d1efa45dc1d..cdd6507947d 100644 --- a/tests/rustdoc-gui/code-sidebar-toggle.goml +++ b/tests/rustdoc-gui/code-sidebar-toggle.goml @@ -1,7 +1,7 @@ // This test checks that the source code pages sidebar toggle is working as expected. go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" click: "a.src" -wait-for: "#src-sidebar-toggle" -click: "#src-sidebar-toggle" +wait-for: "#src-sidebar" +click: "#sidebar-button" expect-failure: true assert-css: ("#src-sidebar", { "left": "-300px" }) -- cgit 1.4.1-3-g733a5