Skip to content

Commit d6dc840

Browse files
Add test to ensure tables are not inside items summary
1 parent 7066398 commit d6dc840

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
@@ -54,3 +54,10 @@ pub mod long_trait {
5454
pub trait ALongNameBecauseItHelpsTestingTheCurrentProblem: DerefMut<Target = u32>
5555
+ From<u128> + Send + Sync + AsRef<str> + 'static {}
5656
}
57+
58+
pub mod summary_table {
59+
/// | header 1 | header 2 |
60+
/// | -------- | -------- |
61+
/// | content | content |
62+
pub struct Foo;
63+
}

0 commit comments

Comments
 (0)