Skip to content

Commit 982c552

Browse files
committed
Auto merge of rust-lang#91171 - jsha:fix-rustdoc-gui-test, r=GuillaumeGomez
Fix toggle-click-deadspace rustdoc-gui test In rust-lang#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 rust-lang#91062 (comment) and rust-lang#91170 (comment). This fixes by pointing at the right file. r? `@GuillaumeGomez`
2 parents de4b242 + 420be4a commit 982c552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/rustdoc-gui/toggle-click-deadspace.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This test ensures that clicking on a method summary, but not on the "[-]",
22
// doesn't toggle the <details>.
3-
goto: file://|DOC_PATH|/test_docs/struct.Foo.html
3+
goto: file://|DOC_PATH|/lib2/struct.Foo.html
44
assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
55
click: "h4.code-header" // This is the position of "pub" in "pub fn a_method"
66
assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})

0 commit comments

Comments
 (0)