File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,14 @@ class ContentExample {
118
118
const ImageEmojiNode (
119
119
src: '/static/generated/emoji/images/emoji/unicode/zulip.png' , alt: ':zulip:' ));
120
120
121
+ static const quotation = ContentExample (
122
+ 'quotation' ,
123
+ "```quote\n words\n ```" ,
124
+ expectedText: 'words' ,
125
+ '<blockquote>\n <p>words</p>\n </blockquote>' , [
126
+ QuotationNode ([ParagraphNode (links: null , nodes: [TextNode ('words' )])])
127
+ ]);
128
+
121
129
static const codeBlockPlain = ContentExample (
122
130
'code block without syntax highlighting' ,
123
131
"```\n verb\n atim\n ```" ,
@@ -557,11 +565,7 @@ void main() {
557
565
])]);
558
566
});
559
567
560
- testParse ('parse quotations' ,
561
- // "```quote\nwords\n```"
562
- '<blockquote>\n <p>words</p>\n </blockquote>' , const [
563
- QuotationNode ([ParagraphNode (links: null , nodes: [TextNode ('words' )])]),
564
- ]);
568
+ testParseExample (ContentExample .quotation);
565
569
566
570
testParseExample (ContentExample .codeBlockPlain);
567
571
testParseExample (ContentExample .codeBlockHighlightedShort);
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ void main() {
71
71
});
72
72
});
73
73
74
+ testContentSmoke (ContentExample .quotation);
75
+
74
76
group ("CodeBlock" , () {
75
77
testContentSmoke (ContentExample .codeBlockPlain);
76
78
testContentSmoke (ContentExample .codeBlockHighlightedShort);
You can’t perform that action at this time.
0 commit comments