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

Side by Side Diff: pkg/analysis_server/test/completion_test.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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) 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.completion.support; 5 library test.completion.support;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 ''' 1588 '''
1589 class MyClass {} 1589 class MyClass {}
1590 main(p) { 1590 main(p) {
1591 var isVariable; 1591 var isVariable;
1592 if (p is MyCla!1) {} 1592 if (p is MyCla!1) {}
1593 var v1 = p is MyCla!2; 1593 var v1 = p is MyCla!2;
1594 var v2 = p is !3; 1594 var v2 = p is !3;
1595 var v2 = p is!4; 1595 var v2 = p is!4;
1596 }''', 1596 }''',
1597 <String>[ 1597 <String>[
1598 "1+MyClass", 1598 "1+MyClass",
1599 "2+MyClass", 1599 "2+MyClass",
1600 "3+MyClass", 1600 "3+MyClass",
1601 "3-v1", 1601 "3-v1",
1602 "4+is", 1602 "4+is",
1603 "4-isVariable" 1603 "4-isVariable"
1604 ]); 1604 ]);
1605 1605
1606 buildTests( 1606 buildTests(
1607 'testCompletion_is_asIdentifierStart', 1607 'testCompletion_is_asIdentifierStart',
1608 ''' 1608 '''
1609 main(p) { 1609 main(p) {
1610 var isVisible; 1610 var isVisible;
1611 var v1 = is!1; 1611 var v1 = is!1;
1612 var v2 = is!2 1612 var v2 = is!2
1613 }''', 1613 }''',
1614 <String>["1+isVisible", "2+isVisible"]); 1614 <String>["1+isVisible", "2+isVisible"]);
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 } else { 2992 } else {
2993 ++expectedPassCount; 2993 ++expectedPassCount;
2994 tester(testName, () { 2994 tester(testName, () {
2995 CompletionTestCase test = new CompletionTestCase(); 2995 CompletionTestCase test = new CompletionTestCase();
2996 return test.runTest(spec, extraFiles); 2996 return test.runTest(spec, extraFiles);
2997 }); 2997 });
2998 } 2998 }
2999 } 2999 }
3000 } 3000 }
3001 } 3001 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/utilities/change_builder_dart.dart ('k') | pkg/analysis_server/test/completion_test_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698