summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/tooltip-over-sidebar.goml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-gui/tooltip-over-sidebar.goml')
-rw-r--r--tests/rustdoc-gui/tooltip-over-sidebar.goml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/tooltip-over-sidebar.goml b/tests/rustdoc-gui/tooltip-over-sidebar.goml
new file mode 100644
index 000000000..71bf69787
--- /dev/null
+++ b/tests/rustdoc-gui/tooltip-over-sidebar.goml
@@ -0,0 +1,12 @@
+// Check that the doctest info tooltips are above the sidebar.
+go-to: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
+move-cursor-to: ".example-wrap.ignore .tooltip"
+wait-for: ".tooltip.popover"
+
+// Move cursor to top left corner of the tooltip and check that it doesn't fade.
+move-cursor-to: ".tooltip.popover"
+wait-for: 100
+assert: ".tooltip.popover:not(.fade-out)"
+
+move-cursor-to: (0, 0)
+wait-for: ".tooltip.popover.fade-out"