@@ -22,7 +22,9 @@ import 'package:test/test.dart';
2222import 'src/utils.dart' as utils;
2323
2424void main () {
25- group ('HTML generator tests' , () {
25+ group ('HTML generator tests' , onPlatform: {
26+ 'windows' : Skip ('Tests do not work on Windows after NNBD conversion' )
27+ }, () {
2628 late MemoryResourceProvider resourceProvider;
2729 late path.Context pathContext;
2830
@@ -86,7 +88,9 @@ void main() {
8688 }
8789 });
8890
89- test ('libraries with no duplicates are not warned about' , () async {
91+ test ('libraries with no duplicates are not warned about' ,
92+ onPlatform: {'windows' : Skip ('Test does not work on Windows (#2446)' )},
93+ () async {
9094 getConvertedFile ('$projectPath /lib/a.dart' )
9195 .writeAsStringSync ('library a;' );
9296 getConvertedFile ('$projectPath /lib/b.dart' )
@@ -96,9 +100,11 @@ void main() {
96100 await generator.generate (packageGraph);
97101
98102 expect (packageGraph.packageWarningCounter.errorCount, 0 );
99- }, onPlatform : { 'windows' : Skip ( 'Test does not work on Windows (#2446)' )} );
103+ });
100104
101- test ('libraries with duplicate names are warned about' , () async {
105+ test ('libraries with duplicate names are warned about' ,
106+ onPlatform: {'windows' : Skip ('Test does not work on Windows (#2446)' )},
107+ () async {
102108 getConvertedFile ('$projectPath /lib/a.dart' )
103109 .writeAsStringSync ('library a;' );
104110 getConvertedFile ('$projectPath /lib/b.dart' )
@@ -112,9 +118,7 @@ void main() {
112118 packageGraph.localPublicLibraries,
113119 anyElement ((Library l) => packageGraph.packageWarningCounter
114120 .hasWarning (l, PackageWarning .duplicateFile, expectedPath)));
115- }, onPlatform: {'windows' : Skip ('Test does not work on Windows (#2446)' )});
116- }, onPlatform: {
117- 'windows' : Skip ('Tests do not work on Windows after NNBD conversion' )
121+ });
118122 });
119123}
120124
0 commit comments