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

Side by Side Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/test/source/test_all.dart ('k') | pkg/analyzer/test/src/context/cache_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.test.src.context.context_builder_test; 5 library analyzer.test.src.context.context_builder_test;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/plugin/options.dart'; 9 import 'package:analyzer/plugin/options.dart';
10 import 'package:analyzer/source/package_map_resolver.dart'; 10 import 'package:analyzer/source/package_map_resolver.dart';
11 import 'package:analyzer/src/context/builder.dart'; 11 import 'package:analyzer/src/context/builder.dart';
12 import 'package:analyzer/src/context/source.dart'; 12 import 'package:analyzer/src/context/source.dart';
13 import 'package:analyzer/src/generated/engine.dart'; 13 import 'package:analyzer/src/generated/engine.dart';
14 import 'package:analyzer/src/generated/sdk.dart'; 14 import 'package:analyzer/src/generated/sdk.dart';
15 import 'package:analyzer/src/generated/source.dart'; 15 import 'package:analyzer/src/generated/source.dart';
16 import 'package:analyzer/src/plugin/options_plugin.dart'; 16 import 'package:analyzer/src/plugin/options_plugin.dart';
17 import 'package:package_config/packages.dart'; 17 import 'package:package_config/packages.dart';
18 import 'package:package_config/src/packages_impl.dart'; 18 import 'package:package_config/src/packages_impl.dart';
19 import 'package:path/path.dart' as path; 19 import 'package:path/path.dart' as path;
20 import 'package:plugin/src/plugin_impl.dart'; 20 import 'package:plugin/src/plugin_impl.dart';
21 import 'package:test/test.dart'; 21 import 'package:test/test.dart';
22 import 'package:test_reflective_loader/test_reflective_loader.dart'; 22 import 'package:test_reflective_loader/test_reflective_loader.dart';
23 23
24 import '../../embedder_tests.dart'; 24 import '../../embedder_tests.dart';
25 import '../../generated/test_support.dart'; 25 import '../../generated/test_support.dart';
26 import '../../utils.dart';
27 import 'mock_sdk.dart'; 26 import 'mock_sdk.dart';
28 27
29 main() { 28 main() {
30 initializeTestEnvironment();
31 defineReflectiveSuite(() { 29 defineReflectiveSuite(() {
32 defineReflectiveTests(ContextBuilderTest); 30 defineReflectiveTests(ContextBuilderTest);
33 defineReflectiveTests(EmbedderYamlLocatorTest); 31 defineReflectiveTests(EmbedderYamlLocatorTest);
34 }); 32 });
35 } 33 }
36 34
37 @reflectiveTest 35 @reflectiveTest
38 class ContextBuilderTest extends EngineTestCase { 36 class ContextBuilderTest extends EngineTestCase {
39 /** 37 /**
40 * The resource provider to be used by tests. 38 * The resource provider to be used by tests.
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 fail('Unexpected invocation of optionsProcessed'); 712 fail('Unexpected invocation of optionsProcessed');
715 } 713 }
716 expect(options, hasLength(expectedOptions.length)); 714 expect(options, hasLength(expectedOptions.length));
717 for (String key in expectedOptions.keys) { 715 for (String key in expectedOptions.keys) {
718 expect(options.containsKey(key), isTrue, reason: 'missing key $key'); 716 expect(options.containsKey(key), isTrue, reason: 'missing key $key');
719 expect(options[key], expectedOptions[key], 717 expect(options[key], expectedOptions[key],
720 reason: 'values for key $key do not match'); 718 reason: 'values for key $key do not match');
721 } 719 }
722 } 720 }
723 } 721 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/source/test_all.dart ('k') | pkg/analyzer/test/src/context/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698