Index: pkg/analyzer/test/source/package_map_resolver_test.dart |
diff --git a/pkg/analyzer/test/source/package_map_resolver_test.dart b/pkg/analyzer/test/source/package_map_resolver_test.dart |
index c892947fef736e21547a1bcd6e9537fa723767ce..caf88da0b4f9f3cff2cfce4e1cfd9fc71582d2c8 100644 |
--- a/pkg/analyzer/test/source/package_map_resolver_test.dart |
+++ b/pkg/analyzer/test/source/package_map_resolver_test.dart |
@@ -12,9 +12,10 @@ import 'package:path/path.dart'; |
import 'package:unittest/unittest.dart'; |
import '../reflective_tests.dart'; |
+import '../utils.dart'; |
main() { |
- groupSep = ' | '; |
+ initializeTestEnvironment(); |
runReflectiveTests(_PackageMapUriResolverTest); |
} |
@@ -58,8 +59,8 @@ class _PackageMapUriResolverTest { |
const pkgFileB = '/part2/lib/libB.dart'; |
provider.newFile(pkgFileA, 'library lib_a'); |
provider.newFile(pkgFileB, 'library lib_b'); |
- PackageMapUriResolver resolver = new PackageMapUriResolver(provider, |
- <String, List<Folder>>{ |
+ PackageMapUriResolver resolver = |
+ new PackageMapUriResolver(provider, <String, List<Folder>>{ |
'pkg': [ |
provider.getResource('/part1/lib/'), |
provider.getResource('/part2/lib/') |
@@ -95,8 +96,8 @@ class _PackageMapUriResolverTest { |
const pkgFileB = '/pkgB/lib/libB.dart'; |
provider.newFile(pkgFileA, 'library lib_a;'); |
provider.newFile(pkgFileB, 'library lib_b;'); |
- PackageMapUriResolver resolver = new PackageMapUriResolver(provider, |
- <String, List<Folder>>{ |
+ PackageMapUriResolver resolver = |
+ new PackageMapUriResolver(provider, <String, List<Folder>>{ |
'pkgA': [provider.getResource('/pkgA/lib/')], |
'pkgB': [provider.getResource('/pkgB/lib/')] |
}); |
@@ -154,8 +155,8 @@ class _PackageMapUriResolverTest { |
const pkgFileB = '/pkgB/lib/src/libB.dart'; |
provider.newFile(pkgFileA, 'library lib_a;'); |
provider.newFile(pkgFileB, 'library lib_b;'); |
- PackageMapUriResolver resolver = new PackageMapUriResolver(provider, |
- <String, List<Folder>>{ |
+ PackageMapUriResolver resolver = |
+ new PackageMapUriResolver(provider, <String, List<Folder>>{ |
'pkgA': [provider.getResource('/pkgA/lib/')], |
'pkgB': [provider.getResource('/pkgB/lib/')] |
}); |
@@ -183,8 +184,8 @@ class _PackageMapUriResolverTest { |
const file2 = '/foo2/lib/bar.dart'; |
provider.newFile(file1, 'library bar'); |
provider.newFile(file2, 'library bar'); |
- PackageMapUriResolver resolver = new PackageMapUriResolver(provider, |
- <String, List<Folder>>{ |
+ PackageMapUriResolver resolver = |
+ new PackageMapUriResolver(provider, <String, List<Folder>>{ |
'foo': [ |
provider.getResource('/foo1/lib'), |
provider.getResource('/foo2/lib') |
@@ -207,8 +208,8 @@ class _PackageMapUriResolverTest { |
const file2 = '/foo2/bar2/lib.dart'; |
provider.newFile(file1, 'library lib'); |
provider.newFile(file2, 'library lib'); |
- PackageMapUriResolver resolver = new PackageMapUriResolver(provider, |
- <String, List<Folder>>{ |
+ PackageMapUriResolver resolver = |
+ new PackageMapUriResolver(provider, <String, List<Folder>>{ |
'pkg1': [ |
provider.getResource('/foo1'), |
provider.getResource('/foo2/bar2') |