File tree Expand file tree Collapse file tree 3 files changed +21
-11
lines changed Expand file tree Collapse file tree 3 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 22pub struct Foo ;
33
44impl Foo {
5- // @has - '//*[@id="examples"]//a' 'Examples'
6- // @has - '//*[@id="panics"]//a' 'Panics'
5+ // @has - '//*[@id="examples"]' 'Examples'
6+ // @has - '//*[@id="examples"]/a[@href="#examples"]' '§'
7+ // @has - '//*[@id="panics"]' 'Panics'
8+ // @has - '//*[@id="panics"]/a[@href="#panics"]' '§'
79 /// # Examples
810 /// # Panics
911 pub fn bar ( ) { }
1012
11- // @has - '//*[@id="examples-1"]//a' 'Examples'
13+ // @has - '//*[@id="examples-1"]' 'Examples'
14+ // @has - '//*[@id="examples-1"]/a[@href="#examples-1"]' '§'
1215 /// # Examples
1316 pub fn bar_1 ( ) { }
1417
15- // @has - '//*[@id="examples-2"]//a' 'Examples'
16- // @has - '//*[@id="panics-1"]//a' 'Panics'
18+ // @has - '//*[@id="examples-2"]' 'Examples'
19+ // @has - '//*[@id="examples-2"]/a[@href="#examples-2"]' '§'
20+ // @has - '//*[@id="panics-1"]' 'Panics'
21+ // @has - '//*[@id="panics-1"]/a[@href="#panics-1"]' '§'
1722 /// # Examples
1823 /// # Panics
1924 pub fn bar_2 ( ) { }
Original file line number Diff line number Diff line change 1+ // It actually checks that the link is kept in the headings as expected now.
2+
13#![ crate_name = "foo" ]
24
35// @has foo/fn.foo.html
4- // @!has - '//a[@href="http://a.a"]'
5- // @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
6- // @has - '//a[@href="#another-one-urg"]' 'Another one urg'
6+ // @has - '//a[@href="http://a.a"]' 'stuff'
7+ // @has - '//*[@id="implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
8+ // @has - '//a[@href="http://b.b"]' 'one'
9+ // @has - '//*[@id="another-one-urg"]' 'Another one urg'
710
811/// fooo
912///
1316///
1417/// # Another [one][two] urg
1518///
16- /// [two]: http://a.a
19+ /// [two]: http://b.b
1720pub fn foo ( ) { }
Original file line number Diff line number Diff line change 22
33// @has foo/index.html '//*[@class="item-right docblock-short"]/p' 'fooo'
44// @!has foo/index.html '//*[@class="item-right docblock-short"]/p/h1' 'fooo'
5- // @has foo/fn.foo.html '//h2[@id="fooo"]/a[@href="#fooo"]' 'fooo'
65
6+ // @has foo/fn.foo.html '//h2[@id="fooo"]' 'fooo'
7+ // @has foo/fn.foo.html '//h2[@id="fooo"]/a[@href="#fooo"]' '§'
78/// # fooo
89///
910/// foo
1011pub fn foo ( ) { }
1112
1213// @has foo/index.html '//*[@class="item-right docblock-short"]/p' 'mooood'
1314// @!has foo/index.html '//*[@class="item-right docblock-short"]/p/h2' 'mooood'
14- // @has foo/foo/index.html '//h3[@id="mooood"]/a[@href="#mooood"]' 'mooood'
1515
16+ // @has foo/foo/index.html '//h3[@id="mooood"]' 'mooood'
17+ // @has foo/foo/index.html '//h3[@id="mooood"]/a[@href="#mooood"]' '§'
1618/// ## mooood
1719///
1820/// foo mod
You can’t perform that action at this time.
0 commit comments