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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/completion_manager_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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.completion.dart.manager; 5 library test.services.completion.dart.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
10 import 'package:analysis_server/src/services/completion/completion_core.dart'; 10 import 'package:analysis_server/src/services/completion/completion_core.dart';
(...skipping 10 matching lines...) Expand all
21 21
22 main() { 22 main() {
23 defineReflectiveSuite(() { 23 defineReflectiveSuite(() {
24 defineReflectiveTests(CompletionManagerTest); 24 defineReflectiveTests(CompletionManagerTest);
25 }); 25 });
26 } 26 }
27 27
28 @reflectiveTest 28 @reflectiveTest
29 class CompletionManagerTest extends DartCompletionContributorTest { 29 class CompletionManagerTest extends DartCompletionContributorTest {
30 @override 30 @override
31 bool get enableNewAnalysisDriver => true;
32
33 @override
34 DartCompletionContributor createContributor() { 31 DartCompletionContributor createContributor() {
35 return new ImportedReferenceContributor(); 32 return new ImportedReferenceContributor();
36 } 33 }
37 34
38 test_resolveDirectives() async { 35 test_resolveDirectives() async {
39 addSource( 36 addSource(
40 '/libA.dart', 37 '/libA.dart',
41 ''' 38 '''
42 library libA; 39 library libA;
43 /// My class. 40 /// My class.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void assertImportedLib(String expectedUri) { 103 void assertImportedLib(String expectedUri) {
107 ImportElement importElem = importNamed(expectedUri); 104 ImportElement importElem = importNamed(expectedUri);
108 expect(importElem.importedLibrary.exportNamespace, isNotNull); 105 expect(importElem.importedLibrary.exportNamespace, isNotNull);
109 } 106 }
110 107
111 // Assert that the new imports each have an export namespace 108 // Assert that the new imports each have an export namespace
112 assertImportedLib(null /* dart:core */); 109 assertImportedLib(null /* dart:core */);
113 assertImportedLib('/libA.dart'); 110 assertImportedLib('/libA.dart');
114 } 111 }
115 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698