@@ -2014,15 +2014,18 @@ UnimplementedInlineContentNode inlineUnimplemented(String html) {
2014
2014
return UnimplementedInlineContentNode (htmlNode: fragment.nodes.single);
2015
2015
}
2016
2016
2017
- void testParse (String name, String html, List <BlockContentNode > nodes) {
2017
+ void testParse (String name, String html, List <BlockContentNode > nodes, {
2018
+ Object ? skip,
2019
+ }) {
2018
2020
test (name, () {
2019
2021
check (parseContent (html))
2020
2022
.equalsNode (ZulipContent (nodes: nodes));
2021
- });
2023
+ }, skip : skip );
2022
2024
}
2023
2025
2024
- void testParseExample (ContentExample example) {
2025
- testParse ('parse ${example .description }' , example.html, example.expectedNodes);
2026
+ void testParseExample (ContentExample example, {Object ? skip}) {
2027
+ testParse ('parse ${example .description }' , example.html, example.expectedNodes,
2028
+ skip: skip);
2026
2029
}
2027
2030
2028
2031
void main () async {
@@ -2411,7 +2414,7 @@ void main() async {
2411
2414
r'^\s*static\s+(?:const|final)\s+(\w+)\s*=\s*ContentExample\s*(?:\.\s*inline\s*)?\(' ,
2412
2415
).allMatches (source).map ((m) => m.group (1 ));
2413
2416
final testedExamples = RegExp (multiLine: true ,
2414
- r'^\s*testParseExample\s*\(\s*ContentExample\s*\.\s*(\w+)\);' ,
2417
+ r'^\s*testParseExample\s*\(\s*ContentExample\s*\.\s*(\w+)(?:,\s*skip:\s*true)?\s* \);' ,
2415
2418
).allMatches (source).map ((m) => m.group (1 ));
2416
2419
check (testedExamples).unorderedEquals (declaredExamples);
2417
2420
}, skip: Platform .isWindows, // [intended] purely analyzes source, so
0 commit comments