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

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

Issue 1506623002: fix combinator contributor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 1114
1115 1115
1116 main(A a) { 1116 main(A a) {
1117 a..!1 aaa(); 1117 a..!1 aaa();
1118 }''', 1118 }''',
1119 <String>["1+aaa", "1-main"]); 1119 <String>["1+aaa", "1-main"]);
1120 1120
1121 buildTests( 1121 buildTests(
1122 'testCompletion_combinator_afterComma', 1122 'testCompletion_combinator_afterComma',
1123 ''' 1123 '''
1124 "import 'dart:math' show cos, !1;''', 1124 import 'dart:math' show cos, !1;''',
1125 <String>["1+PI", "1+sin", "1+Random", "1-String"], 1125 <String>["1+PI", "1+sin", "1+Random", "1-String"]);
1126 failingTests: '1');
1127 1126
1128 buildTests( 1127 buildTests(
1129 'testCompletion_combinator_ended', 1128 'testCompletion_combinator_ended',
1130 ''' 1129 '''
1131 import 'dart:math' show !1;"''', 1130 import 'dart:math' show !1;"''',
1132 <String>["1+PI", "1+sin", "1+Random", "1-String"], 1131 <String>["1+PI", "1+sin", "1+Random", "1-String"]);
1133 failingTests: '1');
1134 1132
1135 buildTests( 1133 buildTests(
1136 'testCompletion_combinator_export', 1134 'testCompletion_combinator_export',
1137 ''' 1135 '''
1138 export 'dart:math' show !1;"''', 1136 export 'dart:math' show !1;"''',
1139 <String>["1+PI", "1+sin", "1+Random", "1-String"], 1137 <String>["1+PI", "1+sin", "1+Random", "1-String"]);
1140 failingTests: '1');
1141 1138
1142 buildTests( 1139 buildTests(
1143 'testCompletion_combinator_hide', 1140 'testCompletion_combinator_hide',
1144 ''' 1141 '''
1145 import 'dart:math' hide !1;"''', 1142 import 'dart:math' hide !1;"''',
1146 <String>["1+PI", "1+sin", "1+Random", "1-String"], 1143 <String>["1+PI", "1+sin", "1+Random", "1-String"]);
1147 failingTests: '1');
1148 1144
1149 buildTests( 1145 buildTests(
1150 'testCompletion_combinator_notEnded', 1146 'testCompletion_combinator_notEnded',
1151 ''' 1147 '''
1152 import 'dart:math' show !1"''', 1148 import 'dart:math' show !1"''',
1153 <String>["1+PI", "1+sin", "1+Random", "1-String"], 1149 <String>["1+PI", "1+sin", "1+Random", "1-String"]);
1154 failingTests: '1');
1155 1150
1156 buildTests( 1151 buildTests(
1157 'testCompletion_combinator_usePrefix', 1152 'testCompletion_combinator_usePrefix',
1158 ''' 1153 '''
1159 import 'dart:math' show s!1"''', 1154 import 'dart:math' show s!1"''',
1160 <String>["1+sin", "1+sqrt", "1-cos", "1-String"], 1155 <String>["1+sin", "1+sqrt", "1-cos", "1-String"]);
1161 failingTests: '1');
1162 1156
1163 buildTests( 1157 buildTests(
1164 'testCompletion_constructor_field', 1158 'testCompletion_constructor_field',
1165 ''' 1159 '''
1166 class X { X(this.field); int f!1ield;}''', 1160 class X { X(this.field); int f!1ield;}''',
1167 <String>["1+field"], 1161 <String>["1+field"],
1168 failingTests: '1'); 1162 failingTests: '1');
1169 1163
1170 buildTests( 1164 buildTests(
1171 'testCompletion_constructorArguments_showOnlyCurrent', 1165 'testCompletion_constructorArguments_showOnlyCurrent',
(...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 } else { 2991 } else {
2998 ++expectedPassCount; 2992 ++expectedPassCount;
2999 tester(testName, () { 2993 tester(testName, () {
3000 CompletionTestCase test = new CompletionTestCase(); 2994 CompletionTestCase test = new CompletionTestCase();
3001 return test.runTest(spec, extraFiles); 2995 return test.runTest(spec, extraFiles);
3002 }); 2996 });
3003 } 2997 }
3004 } 2998 }
3005 } 2999 }
3006 } 3000 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698