| OLD | NEW |
| 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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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'); | 1126 failingTests: '1'); |
| 1127 | 1127 |
| 1128 buildTests( | 1128 buildTests( |
| 1129 'testCompletion_combinator_ended', | 1129 'testCompletion_combinator_ended', |
| 1130 ''' | 1130 ''' |
| 1131 import 'dart:math' show !1;"''', | 1131 import 'dart:math' show !1;"''', |
| 1132 <String>["1+PI", "1+sin", "1+Random", "1-String"]); | 1132 <String>["1+PI", "1+sin", "1+Random", "1-String"], |
| 1133 failingTests: '1'); |
| 1133 | 1134 |
| 1134 buildTests( | 1135 buildTests( |
| 1135 'testCompletion_combinator_export', | 1136 'testCompletion_combinator_export', |
| 1136 ''' | 1137 ''' |
| 1137 export 'dart:math' show !1;"''', | 1138 export 'dart:math' show !1;"''', |
| 1138 <String>["1+PI", "1+sin", "1+Random", "1-String"]); | 1139 <String>["1+PI", "1+sin", "1+Random", "1-String"], |
| 1140 failingTests: '1'); |
| 1139 | 1141 |
| 1140 buildTests( | 1142 buildTests( |
| 1141 'testCompletion_combinator_hide', | 1143 'testCompletion_combinator_hide', |
| 1142 ''' | 1144 ''' |
| 1143 import 'dart:math' hide !1;"''', | 1145 import 'dart:math' hide !1;"''', |
| 1144 <String>["1+PI", "1+sin", "1+Random", "1-String"]); | 1146 <String>["1+PI", "1+sin", "1+Random", "1-String"], |
| 1147 failingTests: '1'); |
| 1145 | 1148 |
| 1146 buildTests( | 1149 buildTests( |
| 1147 'testCompletion_combinator_notEnded', | 1150 'testCompletion_combinator_notEnded', |
| 1148 ''' | 1151 ''' |
| 1149 import 'dart:math' show !1"''', | 1152 import 'dart:math' show !1"''', |
| 1150 <String>["1+PI", "1+sin", "1+Random", "1-String"]); | 1153 <String>["1+PI", "1+sin", "1+Random", "1-String"], |
| 1154 failingTests: '1'); |
| 1151 | 1155 |
| 1152 buildTests( | 1156 buildTests( |
| 1153 'testCompletion_combinator_usePrefix', | 1157 'testCompletion_combinator_usePrefix', |
| 1154 ''' | 1158 ''' |
| 1155 import 'dart:math' show s!1"''', | 1159 import 'dart:math' show s!1"''', |
| 1156 <String>["1+sin", "1+sqrt", "1-cos", "1-String"]); | 1160 <String>["1+sin", "1+sqrt", "1-cos", "1-String"], |
| 1161 failingTests: '1'); |
| 1157 | 1162 |
| 1158 buildTests( | 1163 buildTests( |
| 1159 'testCompletion_constructor_field', | 1164 'testCompletion_constructor_field', |
| 1160 ''' | 1165 ''' |
| 1161 class X { X(this.field); int f!1ield;}''', | 1166 class X { X(this.field); int f!1ield;}''', |
| 1162 <String>["1+field"], | 1167 <String>["1+field"], |
| 1163 failingTests: '1'); | 1168 failingTests: '1'); |
| 1164 | 1169 |
| 1165 buildTests( | 1170 buildTests( |
| 1166 'testCompletion_constructorArguments_showOnlyCurrent', | 1171 'testCompletion_constructorArguments_showOnlyCurrent', |
| (...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2992 } else { | 2997 } else { |
| 2993 ++expectedPassCount; | 2998 ++expectedPassCount; |
| 2994 tester(testName, () { | 2999 tester(testName, () { |
| 2995 CompletionTestCase test = new CompletionTestCase(); | 3000 CompletionTestCase test = new CompletionTestCase(); |
| 2996 return test.runTest(spec, extraFiles); | 3001 return test.runTest(spec, extraFiles); |
| 2997 }); | 3002 }); |
| 2998 } | 3003 } |
| 2999 } | 3004 } |
| 3000 } | 3005 } |
| 3001 } | 3006 } |
| OLD | NEW |