diff options
Diffstat (limited to 'tests/rustdoc-gui/code-sidebar-toggle.goml')
-rw-r--r-- | tests/rustdoc-gui/code-sidebar-toggle.goml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/code-sidebar-toggle.goml b/tests/rustdoc-gui/code-sidebar-toggle.goml new file mode 100644 index 000000000..df665bd46 --- /dev/null +++ b/tests/rustdoc-gui/code-sidebar-toggle.goml @@ -0,0 +1,7 @@ +// This test checks that the source code pages sidebar toggle is working as expected. +goto: "file://" + |DOC_PATH| + "/test_docs/index.html" +click: ".srclink" +wait-for: "#src-sidebar-toggle" +click: "#src-sidebar-toggle" +fail: true +assert-css: ("#source-sidebar", { "left": "-300px" }) |