Skip to content

Commit 3837c1c

Browse files
Update rustdoc test
1 parent 4edcf61 commit 3837c1c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/test/rustdoc/issue-55364.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
// @has issue_55364/subone/index.html
44
// These foo/bar links in the module's documentation should refer inside `subone`
5-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
6-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
5+
// @has - '//section[@id="main"]/details[@open=""]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
6+
// @has - '//section[@id="main"]/details[@open=""]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
77
pub mod subone {
88
//! See either [foo] or [bar].
99
1010
// This should refer to subone's `bar`
1111
// @has issue_55364/subone/fn.foo.html
12-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
12+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
1313
/// See [bar]
1414
pub fn foo() {}
1515
// This should refer to subone's `foo`
1616
// @has issue_55364/subone/fn.bar.html
17-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
17+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
1818
/// See [foo]
1919
pub fn bar() {}
2020
}
@@ -26,8 +26,8 @@ pub mod subone {
2626
// @!has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
2727
// @!has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
2828
// Instead it should be referencing the top level functions
29-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="../fn.foo.html"]' 'foo'
30-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="../fn.bar.html"]' 'bar'
29+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="../fn.foo.html"]' 'foo'
30+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="../fn.bar.html"]' 'bar'
3131
// Though there should be such links later
3232
// @has - '//section[@id="main"]/table//tr[@class="module-item"]/td/a[@class="fn"][@href="fn.foo.html"]' 'foo'
3333
// @has - '//section[@id="main"]/table//tr[@class="module-item"]/td/a[@class="fn"][@href="fn.bar.html"]' 'bar'
@@ -37,13 +37,13 @@ pub mod subtwo {
3737
// Despite the module's docs referring to the top level foo/bar,
3838
// this should refer to subtwo's `bar`
3939
// @has issue_55364/subtwo/fn.foo.html
40-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
40+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
4141
/// See [bar]
4242
pub fn foo() {}
4343
// Despite the module's docs referring to the top level foo/bar,
4444
// this should refer to subtwo's `foo`
4545
// @has issue_55364/subtwo/fn.bar.html
46-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
46+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
4747
/// See [foo]
4848
pub fn bar() {}
4949
}
@@ -59,8 +59,8 @@ pub fn bar() {}
5959

6060
// @has issue_55364/subthree/index.html
6161
// This module should also refer to the top level foo/bar
62-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="../fn.foo.html"]' 'foo'
63-
// @has - '//section[@id="main"]/div[@class="docblock"]//a[@href="../fn.bar.html"]' 'bar'
62+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="../fn.foo.html"]' 'foo'
63+
// @has - '//section[@id="main"]/details/div[@class="docblock"]//a[@href="../fn.bar.html"]' 'bar'
6464
pub mod subthree {
6565
//! See either [foo][super::foo] or [bar][super::bar]
6666
}

0 commit comments

Comments
 (0)