@@ -434,23 +434,35 @@ Future<void> _runTests() async {
434434 print ('${bold }DONE: All tests successful.$reset ' );
435435}
436436
437+ // TODO(yjbanov): we're getting rid of these blacklists as part of https://github.com/flutter/flutter/projects/60
438+ const List <String > kWebTestDirectoryBlacklist = < String > [
439+ 'test/cupertino' ,
440+ 'test/examples' ,
441+ 'test/material' ,
442+ ];
443+ const List <String > kWebTestFileBlacklist = < String > [
444+ 'test/widgets/heroes_test.dart' ,
445+ 'test/widgets/text_test.dart' ,
446+ 'test/widgets/selectable_text_test.dart' ,
447+ 'test/widgets/color_filter_test.dart' ,
448+ 'test/widgets/editable_text_cursor_test.dart' ,
449+ 'test/widgets/shadow_test.dart' ,
450+ 'test/widgets/raw_keyboard_listener_test.dart' ,
451+ 'test/widgets/editable_text_test.dart' ,
452+ 'test/widgets/widget_inspector_test.dart' ,
453+ 'test/widgets/draggable_test.dart' ,
454+ 'test/widgets/shortcuts_test.dart' ,
455+ ];
456+
437457Future <void > _runWebTests () async {
438458 final Directory flutterPackageDir = Directory (path.join (flutterRoot, 'packages' , 'flutter' ));
439459 final Directory testDir = Directory (path.join (flutterPackageDir.path, 'test' ));
440460
441- // TODO(yjbanov): we're getting rid of this blacklist as part of https://github.com/flutter/flutter/projects/60
442- const List <String > kBlacklist = < String > [
443- 'test/cupertino' ,
444- 'test/examples' ,
445- 'test/material' ,
446- 'test/widgets' ,
447- ];
448-
449461 final List <String > directories = testDir
450462 .listSync ()
451463 .whereType <Directory >()
452464 .map <String >((Directory dir) => path.relative (dir.path, from: flutterPackageDir.path))
453- .where ((String relativePath) => ! kBlacklist .contains (relativePath))
465+ .where ((String relativePath) => ! kWebTestDirectoryBlacklist .contains (relativePath))
454466 .toList ();
455467
456468 await _runFlutterWebTest (flutterPackageDir.path, tests: directories);
@@ -687,7 +699,7 @@ class EvalResult {
687699///
688700/// WARNING: if you change this number, also change .cirrus.yml
689701/// and make sure it runs _all_ shards.
690- const int _kWebShardCount = 3 ;
702+ const int _kWebShardCount = 6 ;
691703
692704Future <void > _runFlutterWebTest (String workingDirectory, {
693705 List <String > tests,
@@ -699,7 +711,8 @@ Future<void> _runFlutterWebTest(String workingDirectory, {
699711 testDir.listSync (recursive: true )
700712 .whereType <File >()
701713 .where ((File file) => file.path.endsWith ('_test.dart' ))
702- .map ((File file) => path.relative (file.path, from: workingDirectory))
714+ .map <String >((File file) => path.relative (file.path, from: workingDirectory))
715+ .where ((String filePath) => ! kWebTestFileBlacklist.contains (filePath)),
703716 );
704717 }
705718
0 commit comments