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

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

Issue 791553007: suggest fields rather than synthetic getters (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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.dart.local; 5 library test.services.completion.dart.local;
6 6
7 import 'package:analysis_server/src/protocol_server.dart';
8 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
7 import 'package:analysis_server/src/services/completion/local_computer.dart'; 9 import 'package:analysis_server/src/services/completion/local_computer.dart';
8 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
9 11
10 import '../../reflective_tests.dart'; 12 import '../../reflective_tests.dart';
11 import 'completion_test_util.dart'; 13 import 'completion_test_util.dart';
12 14
13 main() { 15 main() {
14 groupSep = ' | '; 16 groupSep = ' | ';
15 runReflectiveTests(LocalComputerTest); 17 runReflectiveTests(LocalComputerTest);
16 } 18 }
17 19
18 @ReflectiveTestCase() 20 @ReflectiveTestCase()
19 class LocalComputerTest extends AbstractSelectorSuggestionTest { 21 class LocalComputerTest extends AbstractSelectorSuggestionTest {
20 22
21 @override 23 @override
24 CompletionSuggestion assertSuggestLocalField(String name, String type,
25 [int relevance = COMPLETION_RELEVANCE_DEFAULT]) {
26 return assertSuggestField(name, type, relevance: relevance);
27 }
28
29 @override
22 void setUpComputer() { 30 void setUpComputer() {
23 computer = new LocalComputer(); 31 computer = new LocalComputer();
24 } 32 }
25 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698