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

Side by Side Diff: pkg/analyzer_plugin/test/utilities/completion/type_member_contributor_test.dart

Issue 2925273003: Make common tests consistent (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analyzer_plugin/protocol/protocol_common.dart'; 7 import 'package:analyzer_plugin/protocol/protocol_common.dart';
8 import 'package:analyzer_plugin/utilities/completion/completion_core.dart'; 8 import 'package:analyzer_plugin/utilities/completion/completion_core.dart';
9 import 'package:analyzer_plugin/utilities/completion/relevance.dart'; 9 import 'package:analyzer_plugin/utilities/completion/relevance.dart';
10 import 'package:analyzer_plugin/utilities/completion/type_member_contributor.dar t'; 10 import 'package:analyzer_plugin/utilities/completion/type_member_contributor.dar t';
(...skipping 3538 matching lines...) Expand 10 before | Expand all | Expand 10 after
3549 assertSuggestMethod('compareTo', 'Comparable', 'int'); 3549 assertSuggestMethod('compareTo', 'Comparable', 'int');
3550 } 3550 }
3551 3551
3552 test_PrefixedIdentifier_trailingStmt_const() async { 3552 test_PrefixedIdentifier_trailingStmt_const() async {
3553 // SimpleIdentifier PrefixedIdentifier ExpressionStatement 3553 // SimpleIdentifier PrefixedIdentifier ExpressionStatement
3554 addTestSource('const String g = "hello"; f() {g.^ int y = 0;}'); 3554 addTestSource('const String g = "hello"; f() {g.^ int y = 0;}');
3555 await computeSuggestions(); 3555 await computeSuggestions();
3556 assertSuggestGetter('length', 'int'); 3556 assertSuggestGetter('length', 'int');
3557 } 3557 }
3558 3558
3559 // @soloTest
3560 test_PrefixedIdentifier_trailingStmt_const_untyped() async { 3559 test_PrefixedIdentifier_trailingStmt_const_untyped() async {
3561 // SimpleIdentifier PrefixedIdentifier ExpressionStatement 3560 // SimpleIdentifier PrefixedIdentifier ExpressionStatement
3562 addTestSource('const g = "hello"; f() {g.^ int y = 0;}'); 3561 addTestSource('const g = "hello"; f() {g.^ int y = 0;}');
3563 await computeSuggestions(); 3562 await computeSuggestions();
3564 assertSuggestMethod('toString', 'Object', 'String'); 3563 assertSuggestMethod('toString', 'Object', 'String');
3565 assertSuggestGetter('length', 'int'); 3564 assertSuggestGetter('length', 'int');
3566 } 3565 }
3567 3566
3568 test_PrefixedIdentifier_trailingStmt_field() async { 3567 test_PrefixedIdentifier_trailingStmt_field() async {
3569 // SimpleIdentifier PrefixedIdentifier ExpressionStatement 3568 // SimpleIdentifier PrefixedIdentifier ExpressionStatement
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
4209 assertNotSuggested('foo2'); 4208 assertNotSuggested('foo2');
4210 assertNotSuggested('bar2'); 4209 assertNotSuggested('bar2');
4211 assertNotSuggested('_B'); 4210 assertNotSuggested('_B');
4212 assertNotSuggested('Y'); 4211 assertNotSuggested('Y');
4213 assertNotSuggested('C'); 4212 assertNotSuggested('C');
4214 assertNotSuggested('f'); 4213 assertNotSuggested('f');
4215 assertNotSuggested('x'); 4214 assertNotSuggested('x');
4216 assertNotSuggested('e'); 4215 assertNotSuggested('e');
4217 } 4216 }
4218 } 4217 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/services/completion/dart/type_member_contributor_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698