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

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

Issue 1001143002: remove duplicate completion suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 9 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
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'; 7 import 'package:analysis_server/src/protocol_server.dart';
8 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'; 8 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
9 import 'package:analysis_server/src/services/completion/local_computer.dart'; 9 import 'package:analysis_server/src/services/completion/local_computer.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 CompletionSuggestion suggestion = 726 CompletionSuggestion suggestion =
727 assertSuggestLocalMethod('m', 'A', 'void'); 727 assertSuggestLocalMethod('m', 'A', 'void');
728 expect(suggestion.parameterNames, hasLength(2)); 728 expect(suggestion.parameterNames, hasLength(2));
729 expect(suggestion.parameterNames[0], 'x'); 729 expect(suggestion.parameterNames[0], 'x');
730 expect(suggestion.parameterTypes[0], 'dynamic'); 730 expect(suggestion.parameterTypes[0], 'dynamic');
731 expect(suggestion.parameterNames[1], 'y'); 731 expect(suggestion.parameterNames[1], 'y');
732 expect(suggestion.parameterTypes[1], 'int'); 732 expect(suggestion.parameterTypes[1], 'int');
733 expect(suggestion.requiredParameterCount, 2); 733 expect(suggestion.requiredParameterCount, 2);
734 expect(suggestion.hasNamedParameters, false); 734 expect(suggestion.hasNamedParameters, false);
735 } 735 }
736
737 test_shadowed_name() {
738 addTestSource('var a; class A { var a; m() { ^ } }');
739 expect(computeFast(), isTrue);
740 assertSuggestLocalField('a', null);
741 }
736 } 742 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698