@@ -1642,15 +1642,18 @@ UnimplementedInlineContentNode inlineUnimplemented(String html) {
1642
1642
return UnimplementedInlineContentNode (htmlNode: fragment.nodes.single);
1643
1643
}
1644
1644
1645
- void testParse (String name, String html, List <BlockContentNode > nodes) {
1645
+ void testParse (String name, String html, List <BlockContentNode > nodes, {
1646
+ Object ? skip,
1647
+ }) {
1646
1648
test (name, () {
1647
1649
check (parseContent (html))
1648
1650
.equalsNode (ZulipContent (nodes: nodes));
1649
- });
1651
+ }, skip : skip );
1650
1652
}
1651
1653
1652
- void testParseExample (ContentExample example) {
1653
- testParse ('parse ${example .description }' , example.html, example.expectedNodes);
1654
+ void testParseExample (ContentExample example, {Object ? skip}) {
1655
+ testParse ('parse ${example .description }' , example.html, example.expectedNodes,
1656
+ skip: skip);
1654
1657
}
1655
1658
1656
1659
void main () async {
@@ -2034,7 +2037,7 @@ void main() async {
2034
2037
r'^\s*static\s+(?:const|final)\s+(\w+)\s*=\s*ContentExample\s*(?:\.\s*inline\s*)?\(' ,
2035
2038
).allMatches (source).map ((m) => m.group (1 ));
2036
2039
final testedExamples = RegExp (multiLine: true ,
2037
- r'^\s*testParseExample\s*\(\s*ContentExample\s*\.\s*(\w+)\);' ,
2040
+ r'^\s*testParseExample\s*\(\s*ContentExample\s*\.\s*(\w+)(?:,\s*skip:\s*true)?\s* \);' ,
2038
2041
).allMatches (source).map ((m) => m.group (1 ));
2039
2042
check (testedExamples).unorderedEquals (declaredExamples);
2040
2043
}, skip: Platform .isWindows, // [intended] purely analyzes source, so
0 commit comments