Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: pkg/analyzer/test/source/package_map_resolver_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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')
« no previous file with comments | « pkg/analyzer/test/source/package_map_provider_test.dart ('k') | pkg/analyzer/test/source/path_filter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698