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

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

Issue 904603004: rename completion constants and cleanup comment (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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.invocation; 5 library test.services.completion.invocation;
6 6
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
11 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'; 11 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
12 import 'package:analysis_server/src/services/completion/invocation_computer.dart '; 12 import 'package:analysis_server/src/services/completion/invocation_computer.dart ';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 14
15 import '../../reflective_tests.dart'; 15 import '../../reflective_tests.dart';
16 import 'completion_test_util.dart'; 16 import 'completion_test_util.dart';
17 17
18 main() { 18 main() {
19 groupSep = ' | '; 19 groupSep = ' | ';
20 runReflectiveTests(InvocationComputerTest); 20 runReflectiveTests(InvocationComputerTest);
21 } 21 }
22 22
23 @reflectiveTest 23 @reflectiveTest
24 class InvocationComputerTest extends AbstractSelectorSuggestionTest { 24 class InvocationComputerTest extends AbstractSelectorSuggestionTest {
25 25
26 @override 26 @override
27 CompletionSuggestion assertSuggestInvocationField(String name, String type, 27 CompletionSuggestion assertSuggestInvocationField(String name, String type,
28 {int relevance: COMPLETION_RELEVANCE_DEFAULT, bool isDeprecated: false}) { 28 {int relevance: DART_RELEVANCE_DEFAULT, bool isDeprecated: false}) {
29 return assertSuggestField( 29 return assertSuggestField(
30 name, 30 name,
31 type, 31 type,
32 relevance: relevance, 32 relevance: relevance,
33 isDeprecated: isDeprecated); 33 isDeprecated: isDeprecated);
34 } 34 }
35 35
36 /** 36 /**
37 * Check whether a declaration of the form [shadower] in a derived class 37 * Check whether a declaration of the form [shadower] in a derived class
38 * shadows a declaration of the form [shadowee] in a base class, for the 38 * shadows a declaration of the form [shadowee] in a base class, for the
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 } 379 }
380 void test(Derived d) { 380 void test(Derived d) {
381 d.^ 381 d.^
382 } 382 }
383 '''); 383 ''');
384 return computeFull((bool result) { 384 return computeFull((bool result) {
385 assertSuggestMethod('f', 'Base', 'void'); 385 assertSuggestMethod('f', 'Base', 'void');
386 }); 386 });
387 } 387 }
388 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698