Add test to ensure tables are not inside items summary
This commit is contained in:
parent
f423ef51d3
commit
de25b1c740
6
src/test/rustdoc-gui/item-summary-table.goml
Normal file
6
src/test/rustdoc-gui/item-summary-table.goml
Normal file
@ -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", "")
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user