File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
// This test checks that using `.stab` attributes in `.docblock` elements doesn't
2
- // create scrollable paragraphs.
2
+ // create scrollable paragraphs and is correctly displayed (not making weird blocks) .
3
3
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
4
4
// Needs the text to be display to check for scrollable content.
5
5
show-text: true
@@ -31,3 +31,15 @@ assert-property: (
31
31
".top-doc .docblock p:nth-of-type(3)",
32
32
{"scrollHeight": |clientHeight|, "scrollWidth": |clientWidth|},
33
33
)
34
+
35
+ // Ensure that `<code>` elements in code don't make big blocks.
36
+ compare-elements-size-near: (
37
+ "#reexport\.TheStdReexport > code",
38
+ ".docblock p span[data-span='1']",
39
+ {"height": 1},
40
+ )
41
+ compare-elements-size-near: (
42
+ "#reexport\.TheStdReexport > code",
43
+ ".docblock p span[data-span='2']",
44
+ {"height": 1},
45
+ )
You can’t perform that action at this time.
0 commit comments