about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-11-24 09:43:47 +0000
committerbors <bors@rust-lang.org>2021-11-24 09:43:47 +0000
commit982c552c908d179eaa38b6ef152ad3fa30268778 (patch)
tree184cad3316c096b4e3ecfed413c932542025592d
parentde4b242e1e2143f549f25ac5a8f7de9d902ef3b4 (diff)
parent420be4a28273c750df2a44b67bd53c9926fa2190 (diff)
downloadrust-982c552c908d179eaa38b6ef152ad3fa30268778.tar.gz
rust-982c552c908d179eaa38b6ef152ad3fa30268778.zip
Auto merge of #91171 - jsha:fix-rustdoc-gui-test, r=GuillaumeGomez
Fix toggle-click-deadspace rustdoc-gui test

In #91103 I introduced a rustdoc-gui test for clicks on toggles. I introduced some documentation on a method in lib2/struct.Foo.html so there would be something to toggle, but accidentally left the test checking test_docs/struct.Foo.html. That caused the test to reliably fail.

I'm not sure how that test got past GitHub Actions and bors, but it's manifesting in test failures at https://github.com/rust-lang/rust/pull/91062#issuecomment-977589705 and https://github.com/rust-lang/rust/pull/91170#issuecomment-977636159.

This fixes by pointing at the right file.

r? `@GuillaumeGomez`
-rw-r--r--src/test/rustdoc-gui/toggle-click-deadspace.goml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rustdoc-gui/toggle-click-deadspace.goml b/src/test/rustdoc-gui/toggle-click-deadspace.goml
index 4d08927a7be..6fcee65809d 100644
--- a/src/test/rustdoc-gui/toggle-click-deadspace.goml
+++ b/src/test/rustdoc-gui/toggle-click-deadspace.goml
@@ -1,6 +1,6 @@
 // This test ensures that clicking on a method summary, but not on the "[-]",
 // doesn't toggle the <details>.
-goto: file://|DOC_PATH|/test_docs/struct.Foo.html
+goto: file://|DOC_PATH|/lib2/struct.Foo.html
 assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
 click: "h4.code-header" // This is the position of "pub" in "pub fn a_method"
 assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})