Skip to content

Commit de25b1c

Browse files
Add test to ensure tables are not inside items summary
1 parent f423ef5 commit de25b1c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This test ensures that <table> elements aren't display in items summary.
2+
goto: file://|DOC_PATH|/lib2/summary_table/index.html
3+
// We check that we picked the right item first.
4+
assert-text: (".item-table .item-left", "Foo")
5+
// Then we check that its summary is empty.
6+
assert-text: (".item-table .item-right", "")

src/test/rustdoc-gui/src/lib2/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,10 @@ pub mod long_table {
6666
/// 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
6767
pub struct Foo;
6868
}
69+
70+
pub mod summary_table {
71+
/// | header 1 | header 2 |
72+
/// | -------- | -------- |
73+
/// | content | content |
74+
pub struct Foo;
75+
}

0 commit comments

Comments
 (0)