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

Side by Side Diff: pkg/analysis_server/test/services/dependencies/library_dependencies_test.dart

Issue 2402483002: Remove 'initializeTestEnvironment' from 'analysis_server'. (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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.services.dependencies.library; 5 library test.services.dependencies.library;
6 6
7 import 'package:analysis_server/src/services/dependencies/library_dependencies.d art'; 7 import 'package:analysis_server/src/services/dependencies/library_dependencies.d art';
8 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 10
11 import '../../abstract_context.dart'; 11 import '../../abstract_context.dart';
12 import '../../utils.dart';
13 12
14 main() { 13 main() {
15 initializeTestEnvironment();
16 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
17 defineReflectiveTests(LibraryDependenciesTest); 15 defineReflectiveTests(LibraryDependenciesTest);
18 }); 16 });
19 } 17 }
20 18
21 @reflectiveTest 19 @reflectiveTest
22 class LibraryDependenciesTest extends AbstractContextTest { 20 class LibraryDependenciesTest extends AbstractContextTest {
23 test_LibraryDependencies() { 21 test_LibraryDependencies() {
24 addSource('/lib1.dart', 'import "lib2.dart";'); 22 addSource('/lib1.dart', 'import "lib2.dart";');
25 addSource('/lib2.dart', 'import "lib1.dart";'); 23 addSource('/lib2.dart', 'import "lib1.dart";');
(...skipping 20 matching lines...) Expand all
46 } 44 }
47 45
48 test_PackageMaps() { 46 test_PackageMaps() {
49 //TODO(pquitslund): add test 47 //TODO(pquitslund): add test
50 } 48 }
51 49
52 void _performAnalysis() { 50 void _performAnalysis() {
53 while (context.performAnalysisTask().hasMoreWork); 51 while (context.performAnalysisTask().hasMoreWork);
54 } 52 }
55 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698