diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-07-22 13:39:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-22 13:39:20 +0200 |
| commit | aa3d64ef909de336268a37f04fd202019675f234 (patch) | |
| tree | 78d078001d2fcf4554b77bd608ef487bab0cc429 /src/test | |
| parent | 7c89e389d00cfc7e86ae7e1b45880da4f5f5c9f5 (diff) | |
| parent | de25b1c7407c5b9d2214b891523d332c3435d02c (diff) | |
| download | rust-aa3d64ef909de336268a37f04fd202019675f234.tar.gz rust-aa3d64ef909de336268a37f04fd202019675f234.zip | |
Rollup merge of #87270 - GuillaumeGomez:item-summary-table, r=notriddle
Don't display <table> in item summary Fixes #87231. r? `@notriddle`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-gui/item-summary-table.goml | 6 | ||||
| -rw-r--r-- | src/test/rustdoc-gui/src/lib2/lib.rs | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/item-summary-table.goml b/src/test/rustdoc-gui/item-summary-table.goml new file mode 100644 index 00000000000..6bf4e288c43 --- /dev/null +++ b/src/test/rustdoc-gui/item-summary-table.goml @@ -0,0 +1,6 @@ +// This test ensures that <table> elements aren't display in items summary. +goto: file://|DOC_PATH|/lib2/summary_table/index.html +// We check that we picked the right item first. +assert-text: (".item-table .item-left", "Foo") +// Then we check that its summary is empty. +assert-text: (".item-table .item-right", "") diff --git a/src/test/rustdoc-gui/src/lib2/lib.rs b/src/test/rustdoc-gui/src/lib2/lib.rs index 86ae330e009..36373d24971 100644 --- a/src/test/rustdoc-gui/src/lib2/lib.rs +++ b/src/test/rustdoc-gui/src/lib2/lib.rs @@ -66,3 +66,10 @@ pub mod long_table { /// I wanna sqdkfnqds f dsqf qds f dsqf dsq f dsq f qds f qds f qds f dsqq f dsf sqdf dsq fds f dsq f dq f ds fq sd fqds f dsq f sqd fsq df sd fdsqfqsd fdsq f dsq f dsqfd s dfq pub struct Foo; } + +pub mod summary_table { + /// | header 1 | header 2 | + /// | -------- | -------- | + /// | content | content | + pub struct Foo; +} |
