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

Unified Diff: pkg/analysis_server/test/services/completion/local_computer_test.dart

Issue 642973002: add if statement condition suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/services/completion/completion_test_util.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/completion/local_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/local_computer_test.dart b/pkg/analysis_server/test/services/completion/local_computer_test.dart
index 4842d9812b3b4e7c74a969f0cda9ea4135e14c02..7836bb71d64083a514dbce8890838ba04cac872f 100644
--- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
@@ -23,64 +23,4 @@ class LocalComputerTest extends AbstractSelectorSuggestionTest {
super.setUp();
computer = new LocalComputer();
}
-
- test_FunctionExpression_body_function() {
- // Block BlockFunctionBody FunctionExpression
- addTestSource('String foo(List args) {x.then((R b) {^});}');
- expect(computeFast(), isTrue);
- var f = assertSuggestFunction('foo', 'String', false);
- expect(f.element.isPrivate, isFalse);
- assertSuggestParameter('args', 'List');
- assertSuggestParameter('b', 'R');
- }
-
- test_MethodDeclaration_body_getters() {
- // Block BlockFunctionBody MethodDeclaration
- addTestSource('class A {@deprecated X get f => 0; Z a() {^} get _g => 1;}');
- expect(computeFast(), isTrue);
- var a = assertSuggestMethod('a', 'A', 'Z');
- expect(a.element.isDeprecated, isFalse);
- expect(a.element.isPrivate, isFalse);
- var f = assertSuggestGetter('f', 'X');
- expect(f.element.isDeprecated, isTrue);
- expect(f.element.isPrivate, isFalse);
- var g = assertSuggestGetter('_g', null);
- expect(g.element.isDeprecated, isFalse);
- expect(g.element.isPrivate, isTrue);
- }
-
- test_MethodDeclaration_members() {
- // Block BlockFunctionBody MethodDeclaration
- addTestSource('class A {@deprecated X f; Z _a() {^} var _g;}');
- expect(computeFast(), isTrue);
- var a = assertSuggestMethod('_a', 'A', 'Z');
- expect(a.element.isDeprecated, isFalse);
- expect(a.element.isPrivate, isTrue);
- var f = assertSuggestGetter('f', 'X');
- expect(f.element.isDeprecated, isTrue);
- expect(f.element.isPrivate, isFalse);
- var g = assertSuggestGetter('_g', null);
- expect(g.element.isDeprecated, isFalse);
- expect(g.element.isPrivate, isTrue);
- }
-
- test_MethodDeclaration_parameters_named() {
- // Block BlockFunctionBody MethodDeclaration
- addTestSource('class A {@deprecated Z a(X x, {y: boo}) {^}}');
- expect(computeFast(), isTrue);
- var a = assertSuggestMethod('a', 'A', 'Z');
- expect(a.element.isDeprecated, isTrue);
- expect(a.element.isPrivate, isFalse);
- assertSuggestParameter('x', 'X');
- assertSuggestParameter('y', null);
- }
-
- test_MethodDeclaration_parameters_positional() {
- // Block BlockFunctionBody MethodDeclaration
- addTestSource('class A {Z a(X x, [int y=1]) {^}}');
- expect(computeFast(), isTrue);
- assertSuggestMethod('a', 'A', 'Z');
- assertSuggestParameter('x', 'X');
- assertSuggestParameter('y', 'int');
- }
}
« 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