|
4 | 4 | #![feature(lazy_type_alias)]
|
5 | 5 | #![allow(incomplete_features)]
|
6 | 6 |
|
7 |
| -//! # Basic [link](https://example.com) and *emphasis* and `code` |
| 7 | +//! # Basic [link](https://example.com), *emphasis*, **_very emphasis_** and `code` |
8 | 8 | //!
|
9 | 9 | //! This test case covers TOC entries with rich text inside.
|
10 | 10 | //! Rustdoc normally supports headers with links, but for the
|
|
15 | 15 | //@ has foo/index.html
|
16 | 16 | // User header
|
17 | 17 | //@ has - '//section[@id="TOC"]/h3' 'Sections'
|
18 |
| -//@ has - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-and-emphasis-and-code"]/@title' 'Basic link and emphasis and `code`' |
19 |
| -//@ has - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-and-emphasis-and-code"]' 'Basic link and emphasis and code' |
20 |
| -//@ count - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-and-emphasis-and-code"]/em' 0 |
21 |
| -//@ count - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-and-emphasis-and-code"]/a' 0 |
22 |
| -//@ count - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-and-emphasis-and-code"]/code' 1 |
23 |
| -//@ has - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-and-emphasis-and-code"]/code' 'code' |
| 18 | +//@ has - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-emphasis-very-emphasis-and-code"]/@title' 'Basic link, emphasis, very emphasis and `code`' |
| 19 | +//@ has - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-emphasis-very-emphasis-and-code"]' 'Basic link, emphasis, very emphasis and code' |
| 20 | +//@ count - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-emphasis-very-emphasis-and-code"]/em' 0 |
| 21 | +//@ count - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-emphasis-very-emphasis-and-code"]/a' 0 |
| 22 | +//@ count - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-emphasis-very-emphasis-and-code"]/code' 1 |
| 23 | +//@ has - '//section[@id="TOC"]/ul[@class="block top-toc"]/li/a[@href="#basic-link-emphasis-very-emphasis-and-code"]/code' 'code' |
0 commit comments