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

Side by Side Diff: pkg/analysis_server/test/services/completion/dart/override_contributor_test.dart

Issue 1533973002: remove CompletionCache and obsolete tests, and cleanup imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years 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.completion.dart.override; 5 library test.services.completion.dart.override;
6 6
7 import 'package:analysis_server/plugin/protocol/protocol.dart' 7 import 'package:analysis_server/plugin/protocol/protocol.dart'
8 hide Element, ElementKind; 8 hide Element, ElementKind;
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/dart/override_contributo r.dart'; 10 import 'package:analysis_server/src/services/completion/dart/override_contributo r.dart';
11 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'
12 hide DartCompletionContributor;
13 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
14 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
15 13
16 import 'completion_contributor_util.dart'; 14 import 'completion_contributor_util.dart';
17 15
18 main() { 16 main() {
19 // Revisit this contributor and these tests 17 // Revisit this contributor and these tests
20 // once DartChangeBuilder API has solidified. 18 // once DartChangeBuilder API has solidified.
21 // initializeTestEnvironment(); 19 // initializeTestEnvironment();
22 // defineReflectiveTests(InheritedContributorTest); 20 // defineReflectiveTests(InheritedContributorTest);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 expect(cs.relevance, equals(DART_RELEVANCE_HIGH)); 110 expect(cs.relevance, equals(DART_RELEVANCE_HIGH));
113 expect(cs.importUri, null); 111 expect(cs.importUri, null);
114 // expect(cs.selectionOffset, equals(completion.length)); 112 // expect(cs.selectionOffset, equals(completion.length));
115 // expect(cs.selectionLength, equals(0)); 113 // expect(cs.selectionLength, equals(0));
116 expect(cs.isDeprecated, isFalse); 114 expect(cs.isDeprecated, isFalse);
117 expect(cs.isPotential, isFalse); 115 expect(cs.isPotential, isFalse);
118 expect(cs.element, isNotNull); 116 expect(cs.element, isNotNull);
119 return cs; 117 return cs;
120 } 118 }
121 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698