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

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

Issue 2864813002: Switch the default from non-driver to driver in several tests (Closed)
Patch Set: Created 3 years, 7 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 12
13 main() { 13 main() {
14 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
15 defineReflectiveTests(LibraryDependenciesTest); 15 defineReflectiveTests(LibraryDependenciesTest);
16 }); 16 });
17 } 17 }
18 18
19 @reflectiveTest 19 @reflectiveTest
20 class LibraryDependenciesTest extends AbstractContextTest { 20 class LibraryDependenciesTest extends AbstractContextTest {
21 @override
22 bool get enableNewAnalysisDriver => false;
23
21 test_LibraryDependencies() { 24 test_LibraryDependencies() {
22 addSource('/lib1.dart', 'import "lib2.dart";'); 25 addSource('/lib1.dart', 'import "lib2.dart";');
23 addSource('/lib2.dart', 'import "lib1.dart";'); 26 addSource('/lib2.dart', 'import "lib1.dart";');
24 addSource('/lib3.dart', 'import "lib2.dart";'); 27 addSource('/lib3.dart', 'import "lib2.dart";');
25 addSource('/lib4.dart', 'import "lib5.dart";'); 28 addSource('/lib4.dart', 'import "lib5.dart";');
26 provider.newFile('/lib5.dart', 'import "lib6.dart";'); 29 provider.newFile('/lib5.dart', 'import "lib6.dart";');
27 provider.newFile('/lib6.dart', ''); 30 provider.newFile('/lib6.dart', '');
28 31
29 _performAnalysis(); 32 _performAnalysis();
30 33
(...skipping 13 matching lines...) Expand all
44 } 47 }
45 48
46 test_PackageMaps() { 49 test_PackageMaps() {
47 //TODO(pquitslund): add test 50 //TODO(pquitslund): add test
48 } 51 }
49 52
50 void _performAnalysis() { 53 void _performAnalysis() {
51 while (context.performAnalysisTask().hasMoreWork); 54 while (context.performAnalysisTask().hasMoreWork);
52 } 55 }
53 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698