2
2
3
3
// @has issue_55364/subone/index.html
4
4
// 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'
7
7
pub mod subone {
8
8
//! See either [foo] or [bar].
9
9
10
10
// This should refer to subone's `bar`
11
11
// @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'
13
13
/// See [bar]
14
14
pub fn foo ( ) { }
15
15
// This should refer to subone's `foo`
16
16
// @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'
18
18
/// See [foo]
19
19
pub fn bar ( ) { }
20
20
}
@@ -26,8 +26,8 @@ pub mod subone {
26
26
// @!has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
27
27
// @!has - '//section[@id="main"]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
28
28
// 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'
31
31
// Though there should be such links later
32
32
// @has - '//section[@id="main"]/table//tr[@class="module-item"]/td/a[@class="fn"][@href="fn.foo.html"]' 'foo'
33
33
// @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 {
37
37
// Despite the module's docs referring to the top level foo/bar,
38
38
// this should refer to subtwo's `bar`
39
39
// @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'
41
41
/// See [bar]
42
42
pub fn foo ( ) { }
43
43
// Despite the module's docs referring to the top level foo/bar,
44
44
// this should refer to subtwo's `foo`
45
45
// @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'
47
47
/// See [foo]
48
48
pub fn bar ( ) { }
49
49
}
@@ -59,8 +59,8 @@ pub fn bar() {}
59
59
60
60
// @has issue_55364/subthree/index.html
61
61
// 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'
64
64
pub mod subthree {
65
65
//! See either [foo][super::foo] or [bar][super::bar]
66
66
}
0 commit comments