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'
77pub 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'
6464pub mod subthree {
6565 //! See either [foo][super::foo] or [bar][super::bar]
6666}
0 commit comments