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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files 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.completion.dart.override; 5 import 'package:analysis_server/protocol/protocol_generated.dart';
6
7 import 'package:analysis_server/plugin/protocol/protocol.dart'
8 hide Element, ElementKind;
9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart'; 6 import 'package:analysis_server/src/provisional/completion/dart/completion_dart. dart';
10 import 'package:analysis_server/src/services/completion/dart/override_contributo r.dart'; 7 import 'package:analysis_server/src/services/completion/dart/override_contributo r.dart';
8 import 'package:test/test.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 import 'package:test/test.dart';
13 10
14 import 'completion_contributor_util.dart'; 11 import 'completion_contributor_util.dart';
15 12
16 main() { 13 main() {
17 // Revisit this contributor and these tests 14 // Revisit this contributor and these tests
18 // once DartChangeBuilder API has solidified. 15 // once DartChangeBuilder API has solidified.
19 // initializeTestEnvironment(); 16 // initializeTestEnvironment();
20 // defineReflectiveTests(InheritedContributorTest); 17 // defineReflectiveTests(InheritedContributorTest);
21 } 18 }
22 19
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 expect(cs.relevance, equals(DART_RELEVANCE_HIGH)); 107 expect(cs.relevance, equals(DART_RELEVANCE_HIGH));
111 expect(cs.importUri, null); 108 expect(cs.importUri, null);
112 // expect(cs.selectionOffset, equals(completion.length)); 109 // expect(cs.selectionOffset, equals(completion.length));
113 // expect(cs.selectionLength, equals(0)); 110 // expect(cs.selectionLength, equals(0));
114 expect(cs.isDeprecated, isFalse); 111 expect(cs.isDeprecated, isFalse);
115 expect(cs.isPotential, isFalse); 112 expect(cs.isPotential, isFalse);
116 expect(cs.element, isNotNull); 113 expect(cs.element, isNotNull);
117 return cs; 114 return cs;
118 } 115 }
119 } 116 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698