diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-03-30 17:29:54 -0600 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-03-30 17:29:54 -0600 |
| commit | 36b15f0409fae948b3de7dee1d6b2cb995c5784d (patch) | |
| tree | 950cdd1a3833c94e46a9a85107bfd5dea41aca83 /src/test/rustdoc | |
| parent | 08a741eabf3c223650bb29c5df30c8fd414cd86a (diff) | |
| download | rust-36b15f0409fae948b3de7dee1d6b2cb995c5784d.tar.gz rust-36b15f0409fae948b3de7dee1d6b2cb995c5784d.zip | |
Fix multiple footnotes and improve testing
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/check-rule-image-footnote.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/test/rustdoc/check-rule-image-footnote.rs b/src/test/rustdoc/check-rule-image-footnote.rs index 629e1a64e6f..4d3bea20ba8 100644 --- a/src/test/rustdoc/check-rule-image-footnote.rs +++ b/src/test/rustdoc/check-rule-image-footnote.rs @@ -10,11 +10,10 @@ #![crate_name = "foo"] +// ignore-tidy-linelength + // @has foo/fn.f.html -// @has - '<p>hard break: after hard break</p><hr>' -// @has - '<img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="Rust">' -// @has - '<li id="ref1">' -// @has - '<sup id="supref1"><a href="#ref1">1</a></sup>' +// @has - '<p>markdown test</p><p>this is a <a href="https://example.com" title="this is a title">link</a>.</p><p>hard break: after hard break</p><hr><p>a footnote<sup id="supref1"><a href="#ref1">1</a></sup>.</p><p>another footnote<sup id="supref2"><a href="#ref2">2</a></sup>.</p><p><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="Rust"></p><div class="footnotes"><hr><ol><li id="ref1"><p>Thing <a href="#supref1" rev="footnote">↩</a></p></li><li id="ref2"><p>Another Thing <a href="#supref2" rev="footnote">↩</a></p></li></ol></div>' /// markdown test /// /// this is a [link]. @@ -28,8 +27,14 @@ /// /// a footnote[^footnote]. /// +/// another footnote[^footnotebis]. +/// /// [^footnote]: Thing /// +/// +/// [^footnotebis]: Another Thing +/// +/// ///  #[deprecated(note = "Struct<T>")] pub fn f() {} |
