Skip to content

Commit d3b21fd

Browse files
content test [nfc]: Use const for math block tests
1 parent 0eb1410 commit d3b21fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/model/content_test.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ class ContentExample {
529529
]),
530530
]));
531531

532-
static final mathBlock = ContentExample(
532+
static const mathBlock = ContentExample(
533533
'math block',
534534
"```math\n\\lambda\n```",
535535
expectedText: r'\lambda',
@@ -549,7 +549,7 @@ class ContentExample {
549549
]),
550550
])]);
551551

552-
static final mathBlocksMultipleInParagraph = ContentExample(
552+
static const mathBlocksMultipleInParagraph = ContentExample(
553553
'math blocks, multiple in paragraph',
554554
'```math\na\n\nb\n```',
555555
// https://chat.zulip.org/#narrow/channel/7-test-here/topic/.E2.9C.94.20Rajesh/near/2001490
@@ -586,7 +586,7 @@ class ContentExample {
586586
]),
587587
]);
588588

589-
static final mathBlockInQuote = ContentExample(
589+
static const mathBlockInQuote = ContentExample(
590590
'math block in quote',
591591
// There's sometimes a quirky extra `<br>\n` at the end of the `<p>` that
592592
// encloses the math block. In particular this happens when the math block
@@ -614,7 +614,7 @@ class ContentExample {
614614
]),
615615
])]);
616616

617-
static final mathBlocksMultipleInQuote = ContentExample(
617+
static const mathBlocksMultipleInQuote = ContentExample(
618618
'math blocks, multiple in quote',
619619
"````quote\n```math\na\n\nb\n```\n````",
620620
// https://chat.zulip.org/#narrow/channel/7-test-here/topic/.E2.9C.94.20Rajesh/near/2029236
@@ -654,7 +654,7 @@ class ContentExample {
654654
]),
655655
])]);
656656

657-
static final mathBlockBetweenImages = ContentExample(
657+
static const mathBlockBetweenImages = ContentExample(
658658
'math block between images',
659659
// https://chat.zulip.org/#narrow/channel/7-test-here/topic/Greg/near/2035891
660660
'https://upload.wikimedia.org/wikipedia/commons/7/78/Verregende_bloem_van_een_Helenium_%27El_Dorado%27._22-07-2023._%28d.j.b%29.jpg\n```math\na\n```\nhttps://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Zaadpluizen_van_een_Clematis_texensis_%27Princess_Diana%27._18-07-2023_%28actm.%29_02.jpg/1280px-Zaadpluizen_van_een_Clematis_texensis_%27Princess_Diana%27._18-07-2023_%28actm.%29_02.jpg',
@@ -702,7 +702,7 @@ class ContentExample {
702702
// The font sizes can be compared using the katex.css generated
703703
// from katex.scss :
704704
// https://unpkg.com/[email protected]/dist/katex.css
705-
static final mathBlockKatexSizing = ContentExample(
705+
static const mathBlockKatexSizing = ContentExample(
706706
'math block; KaTeX different sizing',
707707
// https://chat.zulip.org/#narrow/channel/7-test-here/topic/Rajesh/near/2155476
708708
'```math\n\\Huge 1\n\\huge 2\n\\LARGE 3\n\\Large 4\n\\large 5\n\\normalsize 6\n\\small 7\n\\footnotesize 8\n\\scriptsize 9\n\\tiny 0\n```',
@@ -779,7 +779,7 @@ class ContentExample {
779779
]),
780780
]);
781781

782-
static final mathBlockKatexNestedSizing = ContentExample(
782+
static const mathBlockKatexNestedSizing = ContentExample(
783783
'math block; KaTeX nested sizing',
784784
'```math\n\\tiny {1 \\Huge 2}\n```',
785785
'<p>'
@@ -821,7 +821,7 @@ class ContentExample {
821821
]),
822822
]);
823823

824-
static final mathBlockKatexDelimSizing = ContentExample(
824+
static const mathBlockKatexDelimSizing = ContentExample(
825825
'math block; KaTeX delimiter sizing',
826826
// https://chat.zulip.org/#narrow/channel/7-test-here/topic/Rajesh/near/2147135
827827
'```math\n\\big( \\Big[ \\bigg⌈ \\Bigg⌊\n```',

0 commit comments

Comments
 (0)