diff options
| author | Michael Howell <michael@notriddle.com> | 2023-12-18 12:11:14 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-12-18 12:42:24 -0700 |
| commit | bd14fb68dabf972d062cfb89ce4b02c61b854189 (patch) | |
| tree | 19b1e3cce63d494bebcf80a7750c2d58b8bab334 /tests/rustdoc-gui/sidebar-source-code.goml | |
| parent | 859bbc5deffbee7870433c541cdbeb4a4a23780f (diff) | |
| download | rust-bd14fb68dabf972d062cfb89ce4b02c61b854189.tar.gz rust-bd14fb68dabf972d062cfb89ce4b02c61b854189.zip | |
Add back the column
Diffstat (limited to 'tests/rustdoc-gui/sidebar-source-code.goml')
| -rw-r--r-- | tests/rustdoc-gui/sidebar-source-code.goml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-gui/sidebar-source-code.goml b/tests/rustdoc-gui/sidebar-source-code.goml index 9e5438a4f00..d7de43a2243 100644 --- a/tests/rustdoc-gui/sidebar-source-code.goml +++ b/tests/rustdoc-gui/sidebar-source-code.goml @@ -52,12 +52,12 @@ wait-for: "#sidebar-button" // We check that the sidebar isn't expanded and has the expected width. assert-css: ("nav.sidebar", {"width": "50px"}) // We now click on the button to expand the sidebar. -click: (10, 10) +click: "#sidebar-button" // We wait for the sidebar to be expanded. wait-for-css: (".src-sidebar-expanded nav.sidebar", {"width": "300px"}) assert-css: (".src-sidebar-expanded nav.sidebar a", {"font-size": "14px"}) // We collapse the sidebar. -click: (10, 10) +click: "#sidebar-button" // We ensure that the class has been removed. wait-for: "html:not(.src-sidebar-expanded)" assert: "nav.sidebar" @@ -65,7 +65,7 @@ assert: "nav.sidebar" // Checking that only the path to the current file is "open". go-to: "file://" + |DOC_PATH| + "/src/lib2/another_folder/sub_mod/mod.rs.html" // First we expand the sidebar again. -click: (10, 10) +click: "#sidebar-button" // We wait for the sidebar to be expanded. wait-for-css: (".src-sidebar-expanded nav.sidebar", {"width": "300px"}) assert: "//*[@class='dir-entry' and @open]/*[text()='lib2']" |
