Skip to content

Commit d41dd5b

Browse files
committed
content test: Add ContentExample.deleted; use in new widget test
1 parent 9cc6700 commit d41dd5b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test/model/content_test.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ class ContentExample {
8585
'<p><strong>bold</strong></p>',
8686
const StrongNode(nodes: [TextNode('bold')]));
8787

88+
static final deleted = ContentExample.inline(
89+
'deleted/strike-through',
90+
'~~strike through~~',
91+
expectedText: 'strike through',
92+
'<p><del>strike through</del></p>',
93+
const DeletedNode(nodes: [TextNode('strike through')]));
94+
8895
static final emphasis = ContentExample.inline(
8996
'emphasis/italic',
9097
'*italic*',
@@ -1535,10 +1542,7 @@ void main() async {
15351542

15361543
testParseExample(ContentExample.strong);
15371544

1538-
testParseInline('parse deleted/strike-through',
1539-
// "~~strike through~~"
1540-
'<p><del>strike through</del></p>',
1541-
const DeletedNode(nodes: [TextNode('strike through')]));
1545+
testParseExample(ContentExample.deleted);
15421546

15431547
testParseExample(ContentExample.emphasis);
15441548

test/widgets/content_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ void main() {
709709
styleFinder: findWordBold);
710710
});
711711

712+
testContentSmoke(ContentExample.deleted);
713+
712714
testContentSmoke(ContentExample.emphasis);
713715

714716
group('inline code', () {

0 commit comments

Comments
 (0)