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

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

Issue 645733002: improve suggestions in for statement (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 c235462cd5b78071f3faf4f2ef64eebeadeeb204..2ba76b3edf4e149512ab75324ae7d46add7fad11 100644
--- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
@@ -24,48 +24,6 @@ class LocalComputerTest extends AbstractSelectorSuggestionTest {
computer = new LocalComputer();
}
- test_ForEachStatement_body_typed() {
- // Block ForEachStatement
- addTestSource('main(args) {for (int foo in bar) {^}}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('foo', 'int');
- }
-
- test_ForEachStatement_body_untyped() {
- // Block ForEachStatement
- addTestSource('main(args) {for (foo in bar) {^}}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('foo', null);
- }
-
- test_ForStatement_body() {
- // Block ForStatement
- addTestSource('main(args) {for (int i; i < 10; ++i) {^}}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('i', 'int');
- }
-
- test_ForStatement_condition() {
- // SimpleIdentifier ForStatement
- addTestSource('main() {for (int index = 0; i^)}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('index', 'int');
- }
-
- test_ForStatement_updaters() {
- // SimpleIdentifier ForStatement
- addTestSource('main() {for (int index = 0; index < 10; i^)}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('index', 'int');
- }
-
- test_ForStatement_updaters_prefix_expression() {
- // SimpleIdentifier PrefixExpression ForStatement
- addTestSource('main() {for (int index = 0; index < 10; ++i^)}');
- expect(computeFast(), isTrue);
- assertSuggestLocalVariable('index', 'int');
- }
-
test_FunctionExpression_body_function() {
// Block BlockFunctionBody FunctionExpression
addTestSource('String foo(List args) {x.then((R b) {^});}');
« 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