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

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

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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
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 'package:analysis_server/src/protocol_server.dart'; 5 import 'package:analysis_server/src/protocol_server.dart';
6 import 'package:analysis_server/src/services/completion/statement/statement_comp letion.dart'; 6 import 'package:analysis_server/src/services/completion/statement/statement_comp letion.dart';
7 import 'package:analyzer/src/dart/analysis/driver.dart'; 7 import 'package:analyzer/src/dart/analysis/driver.dart';
8 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 10
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 class _SimpleCompletionTest extends StatementCompletionTest { 1329 class _SimpleCompletionTest extends StatementCompletionTest {
1330 test_enter() async { 1330 test_enter() async {
1331 await _prepareCompletion( 1331 await _prepareCompletion(
1332 'v = 1;', 1332 'v = 1;',
1333 ''' 1333 '''
1334 main() { 1334 main() {
1335 int v = 1; 1335 int v = 1;
1336 } 1336 }
1337 ''', 1337 ''',
1338 atEnd: true); 1338 atEnd: true);
1339 _assertHasChange( 1339 _assertHasChange('Insert a newline at the end of the current line', '''
1340 'Insert a newline at the end of the current line',
1341 '''
1342 main() { 1340 main() {
1343 int v = 1; 1341 int v = 1;
1344 //// 1342 ////
1345 } 1343 }
1346 '''); 1344 ''');
1347 } 1345 }
1348 1346
1349 test_noCloseParen() async { 1347 test_noCloseParen() async {
1350 await _prepareCompletion( 1348 await _prepareCompletion(
1351 'ing(3', 1349 'ing(3',
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 ''' 1903 '''
1906 main() { 1904 main() {
1907 while () { 1905 while () {
1908 //// 1906 ////
1909 } 1907 }
1910 } 1908 }
1911 ''', 1909 ''',
1912 (s) => _after(s, 'while (')); 1910 (s) => _after(s, 'while ('));
1913 } 1911 }
1914 } 1912 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698